SYZYGY stylelint
config for CSS & SCSS
Make sure you have stylelint
and stylelint-scss
plugin installed:
npm install --save-dev stylelint stylelint-scss
then install the config:
npm install --save-dev stylelint-config-syzygy-scss
Simply set your stylelint
config to extend stylelint-config-syzygy-scss
:
{
"extends": "stylelint-config-syzygy-scss"
}
You can always extend / overwrite the config to better fit your needs.
To do so add "rules"
key to your config and define your rules.
Example to extend the config with scss/at-else-empty-line-before
rule:
{
"extends": "stylelint-config-syzygy-scss",
"rules": {
"scss/at-else-empty-line-before": "always"
}
}