Stylelint Configuration for Savvy CSS
With yarn
:
yarn add --dev @savvy-css/stylelint-config-savvy
With npm
:
npm install --save-dev @savvy-css/stylelint-config-savvy
Simply extend this configuration your own Stylelint configuration:
{
"extends": "stylelint-config-savvy"
}
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": "stylelint-config-suitcss",
"rules": {
"indentation": "tab",
"number-leading-zero": null
}
}