@bmatei/stylelint-builder-angular
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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
  2. cacheLocation
  3. configFile
  4. disableDefaultIgnores
  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
  8. ignorePath
  9. maxWarnings
  10. reportInvalidScopeDisables
  11. reportNeedlessDisables
  12. silent
    • Suppress any output from the builder.
    • Default: false

Package Sidebar

Install

npm i @bmatei/stylelint-builder-angular

Weekly Downloads

29

Version

1.1.0

License

MIT

Unpacked Size

18.8 kB

Total Files

34

Last publish

Collaborators

  • bmatei