Search code examples
angulardeprecatedtslintnpn

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


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

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.


Solution

  • npx tslint-to-eslint-config
    

    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.