@modular-css/stylelint-config
v28.0.0
Published
Stylelint config to suport modular-css syntax
Downloads
142
Maintainers
Readme
@modular-css/stylelint-config
Sharable stylelint config for modular-css
.
By default stylelint will complain about things like @value
, @composes
, composes: fooga;
, and other bits of custom modular-css syntax. This configures the relevant stylelint rules so that those bits of functionality are ignored so that you don't get a bunch of bogus warnings or errors for using modular-css.
Someday it might even validate things for you, but that's a trickier proposition. For now not barfing errors/warnings everywhere is a good start.
Install
> npm i @modular-css/stylelint -D
Usage
Inside your stylelint config you'll specify an extends
property pointing to this package.
{
"extends" : "@modular-css/stylelint-config",
"rules" : {
// ...
}
}