Stackbit's shareable config for stylelint
npm install @stackbit/stylelint-configStackbit's shareable config for stylelint
Install stylelint and @stackbit/stylelint-config:
```
npm install --save-dev stylelint @stackbit/stylelint-config
@stackbit/eslint-config should be used in conjunction with Prettier. See the @stackbit/prettier-config installation guide for more details.
. To enable these rules, add a stylelint property in your package.json. See the stylelint configuration docs for more details.`
"stylelint": {
"extends": ["@stackbit/stylelint-config"]
}
`Now you can run stylelint by adding the following scripts to your
package.json. See the stylelint CLI docs for more details.`
"scripts": {
"lint:css": "stylelint '*/.{css,scss}'",
"format:css": "npm run lint:css -- --fix"
}
`Lint it:
`
npm run lint:css
`Format it:
`
npm run format:css
``