1.1.0 • Published 4 years ago

@bmatei/stylelint-builder-angular v1.1.0

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

stylelint builder for Angular

Run stylelint from Angular CLI.

Please note that this builder runs stylelint using the CLI engine. It's still pretty experimental.

Install

  1. Install stylelint: npm install stylelint --save-dev
  2. Install the builder: npm install @bmatei/stylelint-builder-angular --save-dev
  3. Add the builder to angular.json:
"stylelint": {
  "builder": "@bmatei/stylelint-builder-angular:lint"
}
  1. Run stylelint: ng run <project>:stylelint

Available options

Some options correspond to the stylelint config parameters. By default, these do not override any behavior in stylelint. 1. cache - Reference 2. cacheLocation - Reference 3. configFile - Reference 4. disableDefaultIgnores - Reference 5. files - Array of glob patterns to be checked. - Default: ["src/**/*.@(css|less|pcss|sass|scss)"] 6. force - Ignore any errors and warnings and return a success status. - Default: false 7. formatter - Reference 8. ignorePath - Reference 9. maxWarnings - Reference 10. reportInvalidScopeDisables - Reference
11. reportNeedlessDisables - Reference 12. silent - Suppress any output from the builder. - Default: false