4.4.0 • Published 1 year ago

stylelint-config-css-modules v4.4.0

Weekly downloads
131,820
License
Unlicense
Repository
github
Last release
1 year ago

stylelint-config-css-modules

npm version CI 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
pnpm install stylelint-config-css-modules --save-dev
# or
yarn add stylelint-config-css-modules --dev

stylelint-config-css-modules comes with stylelint-scss as optionalDependencies, if you're not using SCSS and want to strip it from your node_modules just:

npm install stylelint-config-css-modules --save-dev --no-optional
# or
pnpm install stylelint-config-css-modules --save-dev --no-optional
# or
yarn add stylelint-config-css-modules --dev --ignore-optional

Usage

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

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

SCSS

Using SCSS along with configs such as stylelint-config-standard-scss means you should necessarily have stylelint-scss installed.

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

Credits

Licence

stylelint-config-css-modules is unlicensed.

@vividcat/broomnoodles-normplum-fabric@geekality/stylelint-configt-kvlnk-configs@ebullience/stylelint-config@nexhome/restrictions@ebullience/code-config@smb-fe/stylelint-config-standardke-tools-lint@zrf9018/marvel-clizhouhaifei-code-stylethe-front-lintyewill-test-lint@thequack/shared@smb-org/stylelint-config-standardfiber-lint@everything-registry/sub-chunk-2841@acmuta-research/stylelint-config@scrawllife/fabriccode-fabricwetrial-linttf-lint-config-app@cocoy/esp-config@condorhero/stylelint-config-css@dingdinglove/stylelint-config-citydo@design-systems/stylelint-config@democrance/stylelint-config@doremijs/stylelint-config@cahamilton/stylelint-config@byandu/eslint-config-beta@bybit/marvel-fabric@bouchenoiremarc/stylelint-config@blueberrypie/stylelint-config@powerfulyang/lint@rokku/fabric@roothub/fabricjoylint-confjs-dev-utilsjumai-code-stylecy-styleluoshen@digital-engineers/stylelint-config-reactivationstylelint-config-foray1010stylelint-config-css-prettierstylelint-config-cssplusstylelint-config-ericmasiellostylelint-config-fencestylelint-config-jyfe-basestylelint-config-goodeggsstylelint-config-halo-labstylelint-config-onestylelint-config-lokistylelint-config-lostfictionsstylelint-config-nake-appstylelint-config-neoncitylightsstylelint-config-amphibianstylelint-config-bcdstylelint-config-activepipestylelint-config-treatsstylelint-config-upleveledstylelint-config-videoampstylelint-config-sissstylelint-config-smartstylelint-config-tenxstylelint-config-streamrstylelint-config-smartsstylelint-config-pavostylelint-plugin-hhzzstylelint-plugin-hhzzwwstylelint-plugin-hzwstylelint-plugin-hzwnbstylelint-plugin-standardstylelint-plugin-zivistylelint-plugin-zwhsprint-scriptsumi-lint@airnauts/style-guide@airnauts/stylelint-config@alza54/stylelint-config-nuxt@aoviz/lint@artworks/lint@arzyu/stylelint-config-arzyu@applique-ui/stylelint-config-standard@amphibian/linter@asurraa/sura-ui-teamouy@asurraa/teamouy@atom-web/fabric@aurorafe/stylelint-config-base@autobest-ui/stylelint-config@akh-test/stylelint-config@alexigasse/stylelint-config@bairong/fabric@bdlite/fe-lint@bdlite/lint@aerian/stylelint-config-base@bixi-design/lint@bixi/lint@bixi-react/lint@buildinams/lint
4.4.0

1 year ago

4.3.0

2 years ago

4.2.0

2 years ago

4.1.0

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.3.0

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.0

9 years ago