1.3.0 • Published 4 years ago
@twtinteractive/stylelint-config v1.3.0
stylelint-config-twt
Use it as is or as a foundation for your own config.
Installation
npm install stylelint-config-twtUsage
If you've installed stylelint-config-twt locally within your project, just set your stylelint config to:
{
"extends": "stylelint-config-twt"
}If you've globally installed stylelint-config-twt using the -g flag, then you'll need to use the absolute path to stylelint-config-twt in your config e.g.
{
"extends": "/absolute/path/to/stylelint-config-twt"
}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, turn off the block-no-empty rule, and add the unit-whitelist rule:
{
"extends": "stylelint-config-twt",
"rules": {
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [
"extends"
]
}],
"block-no-empty": null,
"unit-whitelist": ["em", "rem", "s"]
}
}Changelog
License
1.3.0
4 years ago