{"id":15605995,"url":"https://github.com/fsubal/eslint-plugin-classnames","last_synced_at":"2025-05-08T23:48:40.306Z","repository":{"id":43602847,"uuid":"382379661","full_name":"fsubal/eslint-plugin-classnames","owner":"fsubal","description":"Warn and formats long classNames usage in JSX","archived":false,"fork":false,"pushed_at":"2025-05-05T15:02:32.000Z","size":403,"stargazers_count":20,"open_issues_count":4,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-05T16:22:22.926Z","etag":null,"topics":["classnames","eslint","eslint-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/eslint-plugin-classnames","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/fsubal.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-07-02T14:57:17.000Z","updated_at":"2025-05-05T15:02:29.000Z","dependencies_parsed_at":"2024-03-11T15:43:20.750Z","dependency_job_id":"d940ddb0-14d2-4c53-8587-dc0de28d945b","html_url":"https://github.com/fsubal/eslint-plugin-classnames","commit_stats":{"total_commits":134,"total_committers":4,"mean_commits":33.5,"dds":0.4552238805970149,"last_synced_commit":"a18d7c255874115b359cf7f05e42d53b002e15a3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsubal%2Feslint-plugin-classnames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsubal%2Feslint-plugin-classnames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsubal%2Feslint-plugin-classnames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsubal%2Feslint-plugin-classnames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fsubal","download_url":"https://codeload.github.com/fsubal/eslint-plugin-classnames/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252532312,"owners_count":21763373,"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":["classnames","eslint","eslint-plugin"],"created_at":"2024-10-03T04:20:36.127Z","updated_at":"2025-05-08T23:48:40.283Z","avatar_url":"https://github.com/fsubal.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# eslint-plugin-classnames\n\nWarn and formats long classNames usage in JSX\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-classnames`:\n\n```\n$ npm install eslint-plugin-classnames --save-dev\n```\n\n## Usage\n\nAdd `classnames` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\"classnames\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"classnames/prefer-classnames-function\": 2\n  }\n}\n```\n\n## Supported Rules\n\n✔: Enabled in the [`recommended`](#recommended) configuration.\\\n🔧: Fixable with [`eslint --fix`](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems).\n\n|  ✔  | 🔧  | Rule                                                                              | Description                                                                     |\n| :-: | :-: | :-------------------------------------------------------------------------------- | :------------------------------------------------------------------------------ |\n|  ✔  | 🔧  | [classnames/prefer-classnames-function](docs/rules/prefer-classnames-function.md) | suggest using className() or clsx() in JSX className                            |\n|  ✔  | 🔧  | [classnames/one-by-one-arguments](docs/rules/one-by-one-arguments.md)             | suggest not to include multiple classes in an argument of className() or clsx() |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsubal%2Feslint-plugin-classnames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffsubal%2Feslint-plugin-classnames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsubal%2Feslint-plugin-classnames/lists"}