1.1.1 • Published 4 years ago

@bmatei/eslint-builder-angular v1.1.1

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

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

  1. Install ESLint: npm install eslint --save-dev
  2. Install the builder: npm install @bmatei/stylelint-builder-angular --save-dev
  3. Add the builder to angular.json:
"eslint": {
  "builder": "@bmatei/eslint-builder-angular:lint"
}
  1. 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. 1. cache - Reference: cache 2. cacheLocation - Reference: cacheLocation 3. configFile - Reference: configFile 4. files - Array of glob patterns to be checked. - Default: ["src/**/*.ts"] 5. fix - Reference: fix 6. force - Ignore any errors and warnings and return a success status. - Default: false 7. format - Reference: format 8. reportUnusedDisableDirectives - Reference: reportUnusedDisableDirectives 9. silent - Suppress any output from the builder. - Default: false 10. useEslintrc - Reference: useEslintrc