@bmatei/stylelint-builder-angular v1.1.0
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
- Install stylelint:
npm install stylelint --save-dev
- Install the builder:
npm install @bmatei/stylelint-builder-angular --save-dev
- Add the builder to
angular.json
:
"stylelint": {
"builder": "@bmatei/stylelint-builder-angular:lint"
}
- 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