You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
5 years ago | |
---|---|---|
.. | ||
CHANGELOG.md | 5 years ago | |
README.md | 5 years ago | |
UNLICENSE | 5 years ago | |
index.js | 5 years ago | |
package.json | 5 years ago |
README.md
stylelint-config-css-modules
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;
}
:export {
black: #000;
white: #111;
}
Credits
Licence
stylelint-config-css-modules is unlicensed.