Standard stylelint config for Netzstrategen projects.
Install the configuration and all peer dependencies:
npm install --save-dev @netzstrategen/stylelint-config stylelint stylelint-scss stylelint-selector-bem-pattern
Create a stylelint configuration json file:
.stylelintrc.json
{
"extends": [
"@netzstrategen/stylelint-config"
]
}
Overwrite rules from the default Netzstrategen config:
{
"extends": [
"stylelint-config-netzstrategen"
],
"rules": {
"no-empty-source": null
}
}
Stylelint has an extensive list of rules. Additional rules are provided by the following packages: