2.0.0 • Published 4 years ago
stylelint-config-riipen v2.0.0
stylelint-config-riipen
Riipen's standard shareable config for stylelint.
Extends stylelint-config-standard.
Installation
npm install stylelint-config-riipen --save-devUsage
If you've installed stylelint-config-riipen locally within your project, just set your stylelint config to:
{
"extends": "stylelint-config-riipen"
}Extending the config
Simply 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, change the indentation to tabs, turn off the number-leading-zero rule,and add the unit-whitelist rule:
{
"extends": "stylelint-config-riipen",
"rules": {
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [
"extends",
"ignores"
]
}],
"indentation": "tab",
"number-leading-zero": null,
"unit-whitelist": ["em", "rem", "s"]
}
}