6.0.4 • Published 28 days ago

@craftworks/stylelint-config-angular v6.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

@craftworks/stylelint-config-angular

NPM version Downloads

A stylelint config optimized for Angular

Contains the configs of

and applies a custom config.

Note that stylelint-config-standard and stylelint-config-standard-scss extend stylelint-config-recommended and stylelint-config-recommended-scss respectively.

Installation

npm install @craftworks/stylelint-config-angular --save-dev

Check for necessary peer dependencies.

Usage

In .stylelintrc

{
  "extends": "@craftworks-stylelint-config-angular",
  "rules": {
    // your rules
  }
}

Provide a .browserslistrc file so that unsupported browser features get reported.

Peer Dependencies

  • stylelint: ^16.1.0

The minimal node version is 18.18.0.

See package.json for more details

Known incompatibles

This config includes the stylelint-no-unsupported-browser-features plugin, which only supports css syntax. This can lead to false positives when using Sass or other syntax - see https://github.com/RJWadley/stylelint-no-unsupported-browser-features/issues/45. However, since the benefits of using this plugin should not be lost, the plugin is still used for non-css syntax with the known issue of false positives here and there.

Change Log

See CHANGELOG.md

License

MIT