stylelint-config-css-modules
CSS modules shareable config for stylelint
Last updated 6 months ago by pascalduez .
Unlicense · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stylelint-config-css-modules 
SYNC missed versions from official npm registry.

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;
}

:export {
  black: #000;
  white: #111;
}

Credits

Licence

stylelint-config-css-modules is unlicensed.

Current Tags

  • 2.2.0                                ...           latest (6 months ago)

10 Versions

  • 2.2.0                                ...           6 months ago
  • 2.1.0                                ...           7 months ago
  • 2.0.0                                ...           8 months ago
  • 1.5.0                                ...           10 months ago
  • 1.4.0                                ...           a year ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 1,668
This Week 12,083
This Month 7,029
Last Day 2,818
Last Week 10,823
Last Month 58,817
Dependencies (0)
None
Dev Dependencies (3)
Dependents (100)

Copyright 2014 - 2016 © taobao.org |