These rules are the most stringent, which allow you to control all types of data in your project, as well as more strictly determine the order of imports.
$ npm install @angular-ru/eslint-config -D
Also you do not need to manually install ESLint, it will always be the newest.
Add to your .eslintrc.json
:
{
"extends": "@angular-ru/eslint-config"
}
Check out eslint:
$ eslint "**/*.ts"
.eslintrc.json
or .eslintrc.js
:
{
extends: '@angular-ru/eslint-config',
rules: {
// override extended rules
}
}
{
"extends": "@angular-ru/eslint-config",
"rules": {
"import/no-deprecated": "error"
}
}