peach a19a732be8 commit message | há 2 anos atrás | |
---|---|---|
.. | ||
LICENSE | há 2 anos atrás | |
README.md | há 2 anos atrás | |
index.js | há 2 anos atrás | |
package.json | há 2 anos atrás |
The recommended shareable config for Stylelint.
It turns on all the Stylelint rules that help you avoid errors.
Use it as is or as a foundation for your own config.
npm install stylelint-config-recommended --save-dev
Set your stylelint
config to:
{
"extends": "stylelint-config-recommended"
}
Add a "rules"
key to your config, then add your overrides and additions there.
For example, to change the at-rule-no-unknown
rule to use its ignoreAtRules
option, turn off the block-no-empty
rule, and add the unit-allowed-list
rule:
{
"extends": "stylelint-config-recommended",
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["extends"]
}
],
"block-no-empty": null,
"unit-allowed-list": ["em", "rem", "s"]
}
}