为什么"npm install"命令警告"npm WARN不推荐使用tslint@6.1.3:"在安装Angular项目时? [英] Why " npm install " command warns "npm WARN deprecated tslint@6.1.3:" while installing Angular project?

查看:117
本文介绍了为什么"npm install"命令警告"npm WARN不推荐使用tslint@6.1.3:"在安装Angular项目时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么"npm install"命令警告"npm WARN不推荐使用tslint@6.1.3:"在安装Angular项目时?

Why " npm install " command warns "npm WARN deprecated tslint@6.1.3:" while installing Angular project?

npm WARN已弃用tslint@6.1.3:TSLint已被弃用,转而支持ESLint.请参阅 https://github.com/palantir/tslint/issues/4534 更多信息.

npm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.

推荐答案

npx tslint-to-eslint-config

tslint-to-eslint-config

tslint-to-eslint-config命令读取任何现有的linter,TypeScript和程序包配置文件,然后基于它们创建一个.eslintrc.js结果.

The tslint-to-eslint-config command reads in any existing linter, TypeScript, and package configuration files, then creates an .eslintrc.js result based on them.

对于具有相应ESLint等效项的任何TSLint规则,这些等效项将在新配置中使用.没有ESLint等效项的TSLint规则将用eslint-plugin-tslint包装.

For any TSLint rules with corresponding ESLint equivalents, those equivalents will be used in the new configuration. TSLint rules without ESLint equivalents will be wrapped with eslint-plugin-tslint.

这篇关于为什么"npm install"命令警告"npm WARN不推荐使用tslint@6.1.3:"在安装Angular项目时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆