SmartHead config for Stylelint.
This config is based on stylelint-config-standard and stylelint-config-recommended-scss
You should install these peer dependencies, if you use npm v6 and less. Npm v7+ installs them automatically.
stylelint
stylelint-scss
stylelint-order
Install the config
npm install @smarthead/stylelint-config --save-dev
After install, just set your stylelint config to:
{
"extends": "stylelint-config-smarthead",
"plugins": [
"stylelint-scss"
]
}
{
"extends": "@smarthead/stylelint-config/extended",
"plugins": [
"stylelint-scss",
"stylelint-order"
]
}