28.0.0 • Published 3 years ago

@modular-css/stylelint-config v28.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

@modular-css/stylelint-config NPM Version NPM License NPM Downloads

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" : {
        // ...
    }
}