Stylelint rules that follow our style guide for SCSS.
First, install Stylelint that meets the peerDependencies requirements:
npm install --save-dev stylelint
If using Stylelint v14 or higher, also install postcss-scss:
npm install --save-dev postcss-scss
Then install the config:
npm install --save-dev @funboxteam/scss-lint-config
Include into a project config and pass desired options:
stylelint "src/**/*.scss" --cache --config node_modules/@funboxteam/scss-lint-config/.stylelintrc
For Stylelint v13 --syntax scss
option is required.
Also you can create your own config based on this one:
module.exports = {
extends: '@funboxteam/scss-lint-config/.stylelintrc.json',
rules: [
// your rule settings here
]
};