1.37.0 • Published 1 year ago
@floydspace/eslint-config-angular v1.37.0
@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-angularThen, 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/htmlconfiguration, because under the hood useseslint-plugin-htmlplugin. Wheneslint-plugin-htmlis extended, rules from other plugins don't work. See opened issue.