The standard shareable config for netzkern.
- Extends
stylelint-config-standard
.- Extends
stylelint-config-recommended
.
- Extends
To see the rules that this config uses, please read the config itself.
npm install stylelint-config-netzkern --save-dev
If you've installed stylelint-config-netzkern
locally within your project, just set your stylelint
config to:
{
"extends": "stylelint-config-netzkern"
}
If you've globally installed stylelint-config-netzkern
using the -g
flag, then you'll need to use the absolute path to stylelint-config-netzkern
in your config e.g.
{
"extends": "/absolute/path/to/stylelint-config-netzkern"
}
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-standard",
"rules": {
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [
"extends",
"ignores"
]
}],
"indentation": "tab",
"number-leading-zero": null,
"unit-whitelist": ["em", "rem", "s"]
}
}
The config is broadly compatible with SugarSS syntax. You will need to turn off the rules that check braces and semicolons, as so:
{
"extends": "stylelint-config-standard",
"rules": {
"block-closing-brace-empty-line-before": null,
"block-closing-brace-newline-after": null,
"block-closing-brace-newline-before": null,
"block-closing-brace-space-before": null,
"block-opening-brace-newline-after": null,
"block-opening-brace-space-after": null,
"block-opening-brace-space-before": null,
"declaration-block-semicolon-newline-after": null,
"declaration-block-semicolon-space-after": null,
"declaration-block-semicolon-space-before": null,
"declaration-block-trailing-semicolon": null
}
}
- Visual Studio Code link