且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2021-11-07 22:17:58

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.