{"id":14978380,"url":"https://github.com/csu-feizao/eslint-plugin-css-modules-es","last_synced_at":"2026-02-13T00:04:11.169Z","repository":{"id":65522930,"uuid":"486962487","full_name":"csu-feizao/eslint-plugin-css-modules-es","owner":"csu-feizao","description":"ESLint plugin with rules that help validate css modules imports","archived":false,"fork":false,"pushed_at":"2022-04-29T14:14:31.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-23T09:41:58.136Z","etag":null,"topics":["css-modules","eslint","eslint-plugin","esmodule","import","lint"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csu-feizao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-29T12:23:29.000Z","updated_at":"2022-12-01T03:22:21.000Z","dependencies_parsed_at":"2023-01-27T06:01:37.588Z","dependency_job_id":null,"html_url":"https://github.com/csu-feizao/eslint-plugin-css-modules-es","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csu-feizao%2Feslint-plugin-css-modules-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csu-feizao%2Feslint-plugin-css-modules-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csu-feizao%2Feslint-plugin-css-modules-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csu-feizao%2Feslint-plugin-css-modules-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csu-feizao","download_url":"https://codeload.github.com/csu-feizao/eslint-plugin-css-modules-es/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629739,"owners_count":19993707,"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":["css-modules","eslint","eslint-plugin","esmodule","import","lint"],"created_at":"2024-09-24T13:57:30.479Z","updated_at":"2026-02-13T00:04:11.164Z","avatar_url":"https://github.com/csu-feizao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-css-modules-es\n\nCheck no default import and camelCaseOnly use of css modules, visit this [blog](https://github.com/csu-feizao/blog/issues/1) for more details.\n\n## Installation\n\nYou'll first need to install [ESLint](https://eslint.org/):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-css-modules-es`:\n\n```sh\nnpm install eslint-plugin-css-modules-es --save-dev\n```\n\n## Usage\n\nAdd `css-modules-es` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"css-modules-es\"\n    ]\n}\n```\n\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n    \"rules\": {\n        \"css-modules-es/rule-name\": 2\n    }\n}\n```\n\n## Specifying file extensions\n\nYou can specify a list of file extensions to validate css modules via plugin settings in .eslintrc.\n\n```json\n{\n  \"settings\": {\n    \"css-modules-es\": {\n      \"extensions\": [\".modules.css\", \".modules.less\"]\n    }\n  }\n}\n```\n\nThe default extensions is `[\".modules.css\"]`\n\n## Supported Rules\n\n* no-default-import-css-modules\n* only-camelcase-key-css-modules\n\n## 📄 License\n\nMIT license\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsu-feizao%2Feslint-plugin-css-modules-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsu-feizao%2Feslint-plugin-css-modules-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsu-feizao%2Feslint-plugin-css-modules-es/lists"}