Sharable stylelint config for CSS/SCSS
npm install --save-dev @miirinjej/stylelint-config stylelint
Add this config to package.json
:
"stylelint": {
"extends": "@miirinjej/stylelint-config"
}
See also: https://stylelint.io/user-guide/configure
You can extend the current configuration by overriding rules or an array of existing configurations:
{
"extends": ["@miirinjej/stylelint-config", "./stylelint.config.js"],
"rules": {
"indentation": "tab"
}
}
See also: https://stylelint.io/user-guide/configure#extends
- stylelint-config-recess-order — A Stylelint config that sorts CSS properties the way Recess did and Bootstrap did/does.
- stylelint-scss — A collection of SCSS specific linting rules for stylelint.
See config itself.
Rules are grouped and sorted by default as in the original lists: