@craftworks/stylelint-config-angular
v6.0.6
Published
A stylelint config optimized for Angular
Downloads
875
Readme
@craftworks/stylelint-config-angular
A stylelint config optimized for Angular
Contains the configs of
- stylelint-config-standard,
- stylelint-config-standard-scss,
- stylelint-config-hudochenkov/order and
- stylelint-config-prettier-scss
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