The standard shareable LESS config for Stylelint.
This config:
- extends the
stylelint-config-standard
shared config and configures its rules for less - extends the
stylelint-config-recommended-less
shared config
To see the rules that this config uses, please read the config itself.
npm install --save-dev stylelint-config-standard-less
Set your stylelint
config to:
{
"extends": "stylelint-config-standard-less"
}
Simply add a "rules"
key to your config, then add your overrides and additions there.
For example, to turn off the less/color-no-invalid-hex
rule:
{
"extends": "stylelint-config-standard-less",
"rules": {
"less/color-no-invalid-hex": null
}
}