Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/q-peppa/eslint-plugin-css-modules-case
eslint-plugin-css-modules-case
https://github.com/q-peppa/eslint-plugin-css-modules-case
Last synced: about 2 months ago
JSON representation
eslint-plugin-css-modules-case
- Host: GitHub
- URL: https://github.com/q-peppa/eslint-plugin-css-modules-case
- Owner: Q-Peppa
- Created: 2024-05-02T05:48:06.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-02T08:19:36.000Z (8 months ago)
- Last Synced: 2024-11-11T14:03:43.970Z (about 2 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-plugin-css-modules-case
this plugin not allow camelCase in css-modules, inspired by [eslint-plugin-css-modules](https://github.com/atfzl/eslint-plugin-css-modules/)
# Rules
- css-modules-case/no-camel-case
- --fix ✅# Usage
.eslintrc.js
```json
"plugins":["css-modules-case"],
"rules": {
"css-modules-case/no-camel-case":[ "error" , {
"case" :"snake" // 'snake' | 'kebab'
}
]
}```
# Demo
```tsx
foo
```---
```sh
error mainContainer case incompatible with snake-case, should be main_containereslint --fix
# -> foo
```