@modular-css/stylelint-config

Stylelint config to suport modular-css syntax

Usage no npm install needed!

<script type="module">
  import modularCssStylelintConfig from 'https://cdn.skypack.dev/@modular-css/stylelint-config';
</script>

README

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