15.302.0 • Published 3 years ago

@angular-ru/eslint-plugin v15.302.0

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

Angular-RU eslint-plugin

An ESLint-specific plugin that contains rules which are specific to Angular projects. It can be combined with any other ESLint plugins in the normal way.

Quick start

$ npm install @angular-ru/eslint-plugin -D

Add to your .eslintrc.json:

{
    "plugins": ["@angular-ru/eslint-plugin"],
    "rules": {
        // by default in @angular-ru/eslint-plugin
        "@angular-ru/no-suffix-file": [
            "error",
            {
                "fileEndsWithList": [
                    ".model.ts",
                    ".models.ts",
                    ".enum.ts",
                    ".enums.ts",
                    ".type.ts",
                    ".types.ts",
                    ".interface.ts",
                    ".interfaces.ts"
                ]
            }
        ]
    }
}

Check out eslint:

$ eslint "**/*.ts"