stylelint-config-copilot-plugins
v1.0.0-rc.5
Published
Opinionated Stylelint-Configuration for stylelint plugins
Downloads
47
Maintainers
Readme
stylelint-config-copilot-plugins
Stylelint shareable config for various stylelint plugins.
Install
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.
Usage
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
Related
- 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