pascalduez / stylelint-config-css-modules

CSS modules shareable config for stylelint
The Unlicense
112 stars 2 forks source link

Stylelint complains that the class is not in kebab-case #13

Closed Anthony-Gaudino closed 2 years ago

Anthony-Gaudino commented 2 years ago

After installing and setting up the extends in Package.json:

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

Stylelint complains that class names are not in kebab-case even though CSS modules should be in camelCase.

I think this may not be working at all, since in VSCode it says that the @value is an Unknown at rule.

pascalduez commented 2 years ago

Hi,

for the case issue, please see https://github.com/pascalduez/stylelint-config-css-modules/issues/7.
It's not in the scope of this preset to enforce this, it's a per project style decision, it's not only targeted at modules.

CSS modules should be in camelCase

CSS modules does not enforce camelCase.

I think this may not be working at all, since in VSCode it says that the @value is an Unknown at rule.

It's working well (see tests). Probably check your VSCode config to make sure it uses the proper config.

SalahAdDin commented 9 months ago

But we installed it to fix that issue @pascalduez.