Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

stylelint-config-css-modules

1.3.0 • Public • Published

stylelint-config-css-modules

npm version Build Status

CSS modules shareable config for stylelint.

Tweaks stylelint rules to accept css modules specific syntax.
This is useful as an override of pre-defined rules, for instance the stylelint-config-standard.

Installation

npm install stylelint-config-css-modules --save-dev

or

yarn add stylelint-config-css-modules --dev

Usage

{
  "extends": [
    "stylelint-config-standard",
    "stylelint-config-css-modules"
  ],
  "rules": {
    [...]
  }
}

Examples

@value colors: './colors.css';
@value primary, secondary from colors;
 
.base {
  content: 'base';
  color: primary;
}
 
.composed {
  composes: base;
}
 
.composedWith {
  compose-with: base;
}
 
.flexible {
  composes: flex from './utils.css';
  flex-direction: column;
}
 
:global(.js) .progressive {
  display: block;
}

Credits

Licence

stylelint-config-css-modules is unlicensed.

install

npm i stylelint-config-css-modules

Downloadsweekly downloads

30,445

version

1.3.0

license

Unlicense

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability