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.
npm install @craftworks/stylelint-config-angular --save-dev
Check for necessary peer dependencies.
In .stylelintrc
{
"extends": "@craftworks-stylelint-config-angular",
"rules": {
// your rules
}
}
Provide a .browserslistrc
file so that unsupported browser features get reported.
stylelint: ^16.1.0
The minimal node version is 18.18.0
.
See package.json for more details
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.
See CHANGELOG.md