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
:
"stylelint": {
"builder": "@speedy/build-angular:stylelint"
}
- 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
format
force
- Ignore any errors and warnings and return a success status.
reportUnusedDisableDirectives
silent
- Suppress any output from the builder.
- Default:
false
useEslintrc