12.1.1 • Published 3 years ago

@angular-ru/eslint v12.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Shareable Configs for Angular projects

image image

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.

Quick start

$ npm install @angular-ru/eslint -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"
}

Check out eslint:

$ eslint "**/*.ts"

Override rules

.eslintrc.json or .eslintrc.js:

{
    extends: '@angular-ru/eslint',
    rules: {
        // override extended rules
    }
}

Optional

import/no-deprecated by default "off"

{
    "extends": "@angular-ru/eslint",
    "rules": {
        "import/no-deprecated": "error"
    }
}