0.0.5 • Published 1 year ago

eslint-plugin-css-modules-case v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

eslint-plugin-css-modules-case

this plugin not allow camelCase in css-modules, inspired by eslint-plugin-css-modules

Rules

  • css-modules-case/no-camel-case
    • --fix ✅

Usage

.eslintrc.js

 "plugins":["css-modules-case"],
 "rules": {
      "css-modules-case/no-camel-case":[ "error" , {
        "case" :"snake" // 'snake' | 'kebab'
      }
    ]
}

Demo

<main className={styles.mainContainer}> foo </main>

error  mainContainer case incompatible with snake-case, should be main_container

eslint --fix
 # -> <main className={styles["main_contanier"]}> foo </main>
0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago