@bmatei/stylelint-builder-angular
v1.1.0
Published
stylelint builder for Angular.
Downloads
325
Maintainers
Readme
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.
cache
cacheLocation
configFile
disableDefaultIgnores
files
- Array of glob patterns to be checked.
- Default:
["src/**/*.@(css|less|pcss|sass|scss)"]
force
- Ignore any errors and warnings and return a success status.
- Default:
false
formatter
ignorePath
maxWarnings
reportInvalidScopeDisables
reportNeedlessDisables
silent
- Suppress any output from the builder.
- Default:
false