stylelint-config
Portable configuration for Stylelint
Install
yarn add -D @bjeco/stylelint-config
This configuration is turn-key and includes all plugin dependencies as well as the config.
Setup
Add a "stylelint"
parameter to the package.json file which specifies the shared config:
{
"name": "my-library",
"version": "9000.0.1",
"stylelint": {
"extends": "@bjeco/stylelint-config"
}
}
VSCode
For best results, use in conjunction with the VSCode plugin to auto fix any issues related to this configuration
Plugin
Settings
{
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"editor.codeActionsOnSave": {
"source.fixAll": true
}
}