Stylelint configuration inspired by SMACSS
$ npm install --save @touch4it/stylelint-config-guidelinesSet your stylelint config to:
{
"extends": "@touch4it/stylelint-config-guidelines"
}Simply add a "rules" key to your config and add your overrides there.
For example, to change the indentation to tabs and turn off the number-leading-zero rule:
{
"extends": "@touch4it/stylelint-config-guidelines",
"rules": {
"indentation": "tab",
"number-leading-zero": null
}
}Important: When migrating from version 3 to version 4, please note that Stylelint v15+ no longer includes formatting rules. If you need code formatting, you'll need to use Prettier alongside Stylelint.