Reputation: 9
Why " npm install " command warns "npm WARN deprecated [email protected]:" while installing Angular project?
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
Upvotes: -1
Views: 2260
Reputation: 9
npx tslint-to-eslint-config
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.
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.
Upvotes: 1
Reputation: 1104
The angular uses tslint but it is deprecated as you mentioned. The angular team already prepared a lot and will remove tslint within the next version. The angular es lint project is aready there in version 1 (release the last days) and could be used already. They provide a migration path to avoid big issues during the change.
Upvotes: 1