The Wayback Machine - https://web.archive.org/web/20201029152631/https://github.com/bfmatei/eslint-builder-angular
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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
  2. cacheLocation
  3. configFile
  4. files
    • Array of glob patterns to be checked.
    • Default: ["src/**/*.ts"]
  5. fix
  6. force
    • Ignore any errors and warnings and return a success status.
    • Default: false
  7. format
  8. reportUnusedDisableDirectives
  9. silent
    • Suppress any output from the builder.
    • Default: false
  10. useEslintrc
You can’t perform that action at this time.