@xip-online-applications/stylelint-config
v0.8.2
Published
## Usage
Downloads
80
Readme
Stylelint Config
Usage
Install
npm i -D stylelint @xip-online-applications/stylelint-config
Add config
Add the config to your package.json
. Alternatively you can make a separate config file.
{
// ...
"stylelint": {
"extends": "@xip-online-applications/stylelint-config"
}
}
Add script
{
// ...
"scripts": {
// ...
"lint:style": "stylelint 'YOUR_SOURCE_FOLDER/**/*.{css,scss}'"
// ...
}
}
Prettier
This config uses Stylelint Prettier to not conflict with Prettier's config, so make sure you install XIPs Prettier config as well.