0.0.3 • Published 7 years ago
stylelint-config-test v0.0.3
stylelint-config-simtechdev
The standard shareable config for stylelint.
Use it as is or as a foundation for your own config.
Installation
npm install stylelint-config-simtechdev --save-dev
Usage
If you've installed stylelint-config-simtechdev
locally within your project, just set your stylelint
config to:
{
"extends": "stylelint-config-simtechdev"
}
If you've globally installed stylelint-config-simtechdev
using the -g
flag, then you'll need to use the absolute path to stylelint-config-simtechdev
in your config e.g.
{
"extends": "/absolute/path/to/stylelint-config-simtechdev"
}
Extending the config
Simply add a "rules"
key to your config, then add your overrides and additions there.
For example, to change the indentation
to tabs, turn off the number-leading-zero
rule, change the property-no-unknown
rule to use its ignoreAtRules
option and add the unit-whitelist
rule:
{
"extends": "stylelint-config-simtechdev",
"rules": {
"indentation": "tab",
"number-leading-zero": null,
"property-no-unknown": [ true, {
"ignoreProperties": [
"composes"
]
}],
"unit-whitelist": ["em", "rem", "s"]
}
}