Stylelint shareable config for various stylelint plugins.
npm install stylelint-config-copilot-plugins --save-dev
The following plugins are included:
-
stylelint-declaration-block-no-ignored-properties
Disallow property values that are ignored due to another property value in the same rule. E.g.
float
andvertical-align
. -
stylelint-declaration-strict-value
Enforce usage of variables (pre-processors or CSS custom properties aka CSS variables).
-
stylelint-high-performance-animation:
Warn about properties with low-performance animation (e.g. paint). Read more about animations and performance.
Add this to your Stylelint config:
{
"extends": "stylelint-config-copilot-plugins"
}
The plugins are already imported in the config, no need to set it in the plugins
array
Example: Rename .stylelintrc.example.js
to .stylelintrc.js
- stylelint-config-copilot-base - Shareable config based on built-in rules
- stylelint-config-scss - Shareable config for Sass (scss) support
- stylelint-config-copilot-order - Shareable config for order specific rules