{"id":19639934,"url":"https://github.com/q-peppa/eslint-plugin-css-modules-case","last_synced_at":"2025-10-26T09:19:12.417Z","repository":{"id":237601180,"uuid":"794867640","full_name":"Q-Peppa/eslint-plugin-css-modules-case","owner":"Q-Peppa","description":"eslint-plugin-css-modules-case","archived":false,"fork":false,"pushed_at":"2024-05-02T08:19:36.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T12:46:17.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Q-Peppa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T05:48:06.000Z","updated_at":"2024-05-02T08:19:39.000Z","dependencies_parsed_at":"2024-05-02T19:33:47.482Z","dependency_job_id":"6a0b2272-f6c7-496d-a4f3-b850b76ee040","html_url":"https://github.com/Q-Peppa/eslint-plugin-css-modules-case","commit_stats":null,"previous_names":["q-peppa/eslint-plugin-css-modules-case"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Q-Peppa/eslint-plugin-css-modules-case","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Q-Peppa%2Feslint-plugin-css-modules-case","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Q-Peppa%2Feslint-plugin-css-modules-case/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Q-Peppa%2Feslint-plugin-css-modules-case/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Q-Peppa%2Feslint-plugin-css-modules-case/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Q-Peppa","download_url":"https://codeload.github.com/Q-Peppa/eslint-plugin-css-modules-case/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Q-Peppa%2Feslint-plugin-css-modules-case/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262869310,"owners_count":23377276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T14:03:48.960Z","updated_at":"2025-10-26T09:19:12.308Z","avatar_url":"https://github.com/Q-Peppa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-css-modules-case\n\nthis plugin not allow camelCase in css-modules, inspired by [eslint-plugin-css-modules](https://github.com/atfzl/eslint-plugin-css-modules/)\n\n# Rules\n\n- css-modules-case/no-camel-case\n  - --fix ✅\n\n# Usage\n\n.eslintrc.js\n\n```json\n \"plugins\":[\"css-modules-case\"],\n \"rules\": {\n      \"css-modules-case/no-camel-case\":[ \"error\" , {\n        \"case\" :\"snake\" // 'snake' | 'kebab'\n      }\n    ]\n}\n\n```\n\n# Demo\n\n```tsx\n\u003cmain className={styles.mainContainer}\u003e foo \u003c/main\u003e\n```\n\n---\n\n```sh\nerror  mainContainer case incompatible with snake-case, should be main_container\n\neslint --fix\n # -\u003e \u003cmain className={styles[\"main_contanier\"]}\u003e foo \u003c/main\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fq-peppa%2Feslint-plugin-css-modules-case","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fq-peppa%2Feslint-plugin-css-modules-case","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fq-peppa%2Feslint-plugin-css-modules-case/lists"}