@bmatei/eslint-builder-angular
v1.1.1
Published
ESLint builder for Angular.
Downloads
20
Maintainers
Readme
ESLint builder for Angular
Run ESLint from Angular CLI.
Please note that this builder runs ESLint using the CLI engine and not by creating the TS program directly. It's still pretty experimental.
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