15.302.0 • Published 3 years ago
@angular-ru/eslint-plugin v15.302.0
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"