ESLint builder for Angular
Run ESLint from Angular CLI.
Install
- Install ESLint:
npm install eslint --save-dev
- Install the builder:
npm install @bmatei/stylelint-builder-angular --save-dev
- Add the builder to
angular.json
:
"eslint": {
"builder": "@bmatei/eslint-builder-angular:lint"
}
- Run stylelint:
ng run <project>:stylelint
Available options
Some options correspond to the ESLint config parameters. By default, these do not override any behavior in ESLint.
cache
cacheLocation
configFile
files
- Array of glob patterns to be checked.
- Default:
["src/**/*.ts"]
fix
force
- Ignore any errors and warnings and return a success status.
- Default:
false
format
reportUnusedDisableDirectives
silent
- Suppress any output from the builder.
- Default:
false
useEslintrc