{"id":19914714,"url":"https://github.com/fullstorydev/eslint-plugin-annotate-react","last_synced_at":"2025-08-16T11:08:55.292Z","repository":{"id":65551549,"uuid":"516140442","full_name":"fullstorydev/eslint-plugin-annotate-react","owner":"fullstorydev","description":"An ESLint plugin for annotating React components.","archived":false,"fork":false,"pushed_at":"2025-03-14T17:41:32.000Z","size":402,"stargazers_count":4,"open_issues_count":1,"forks_count":5,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-08-08T16:49:20.932Z","etag":null,"topics":[],"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/fullstorydev.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}},"created_at":"2022-07-20T21:33:16.000Z","updated_at":"2025-06-11T15:01:00.000Z","dependencies_parsed_at":"2024-11-12T21:39:13.790Z","dependency_job_id":"fabaa4b8-2ee9-4113-a87b-31a99e310039","html_url":"https://github.com/fullstorydev/eslint-plugin-annotate-react","commit_stats":{"total_commits":21,"total_committers":4,"mean_commits":5.25,"dds":0.1428571428571429,"last_synced_commit":"52ef6d1bc9c23643cb8d24c2325b0878e2a67274"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/fullstorydev/eslint-plugin-annotate-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstorydev%2Feslint-plugin-annotate-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstorydev%2Feslint-plugin-annotate-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstorydev%2Feslint-plugin-annotate-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstorydev%2Feslint-plugin-annotate-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullstorydev","download_url":"https://codeload.github.com/fullstorydev/eslint-plugin-annotate-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstorydev%2Feslint-plugin-annotate-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702562,"owners_count":24630877,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12T21:36:51.029Z","updated_at":"2025-08-16T11:08:55.268Z","avatar_url":"https://github.com/fullstorydev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @fullstory/eslint-plugin-annotate-react\n\nAn ESLint plugin for adding 'data-attribute' to React components. The purpose of this plugin is to automatically make css selectors. Here is an example:\n\n```\nconst MyComponent = () =\u003e (\n  \u003cdiv /\u003e\n);\n```\n\nThis plugin will autofix and add the `data-component` prop to the div:\n\n```\nconst MyComponent = () =\u003e (\n  \u003cdiv data-component=\"MyComponent\" /\u003e\n);\n```\n\nThis plugin is intended to not be too opinionated. In general the approach is to suggest to the developer to add 'data-component' when there is an obvious approach, but in questionable cases, the plugin will tend towards being quiet. Click to learn more about the [covered cases](./docs/covered-cases.md).\n\n_Note: This plugin cannot guarantee that the `data-component` prop will actually make it to the DOM node if the top level element is another React component. For it to work effectively, make sure you are properly [forwarding props with the JSX spread syntax](https://react.dev/learn/passing-props-to-a-component#forwarding-props-with-the-jsx-spread-syntax)._\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 `@fullstory/eslint-plugin-annotate-react`:\n\n```sh\nnpm install @fullstory/eslint-plugin-annotate-react --save-dev\n```\n\n## Usage\n\nAdd `@fullstory/eslint-plugin-annotate-react` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\"@fullstory/annotate-react\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"@fullstory/annotate-react/data-component\": \"error\"\n  }\n}\n```\n\n## Maintaining this plugin\n\nTests can be ran using\n\n```\nnpm run test\n```\n\n## Supported Rules\n\n### @fullstory/annotate-react/data-component\n\n...\n\n## Release\n\nRun this command to bump the version, push the tag, and create the release on GitHub:\n\n```sh\nnpx np \u003cpatch | minor | major\u003e --no-publish --no-tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstorydev%2Feslint-plugin-annotate-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullstorydev%2Feslint-plugin-annotate-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstorydev%2Feslint-plugin-annotate-react/lists"}