@floydspace/eslint-config-angular
v1.37.0
Published
Shared ESLint configs for Angular apps
Downloads
8
Maintainers
Readme
@floydspace/eslint-config-angular
ESlint plugin includes shared opinionated rules for Angular applications. Designed to use with @floydspace/eslint-config
.
Usage
Install from npm
npm i --save-dev @floydspace/eslint-config @floydspace/eslint-config-angular
Then, need to include recommendation
configurations sets to .eslintrc
. We need to choose base configuration, and any
necessary additional configs:
{
"extends": ["@floydspace/eslint-config/app", "@floydspace/eslint-config-angular"]
}
You can also include optional
configurations, however, you are responsible for implementing these rules in your project:
{
"extends": [
// recommended
"@floydspace/eslint-config/app",
"@floydspace/eslint-config-angular",
// optional
"@floydspace/eslint-config-angular/html",
"@floydspace/eslint-config-angular/rxjs",
"@floydspace/eslint-config-angular/promise",
"@floydspace/eslint-config-angular/imports",
"@floydspace/eslint-config-angular/line-statements",
"@floydspace/eslint-config-angular/member-ordering"
]
}
Warning
- There are some problems with
@floydspace/eslint-config-angular/html
configuration, because under the hood useseslint-plugin-html
plugin. Wheneslint-plugin-html
is extended, rules from other plugins don't work. See opened issue.