{"id":19810738,"url":"https://github.com/sj-distributor/eslint-plugin-react","last_synced_at":"2025-05-01T08:32:03.982Z","repository":{"id":65144283,"uuid":"583569818","full_name":"sj-distributor/eslint-plugin-react","owner":"sj-distributor","description":"👨‍💻 ESLint presets for react","archived":true,"fork":false,"pushed_at":"2025-01-02T07:58:32.000Z","size":113,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T20:44:51.775Z","etag":null,"topics":["eslint","eslint-plugin","eslint-react","perttier","react","react-web"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@sj-distributor/eslint-plugin-react","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/sj-distributor.png","metadata":{"files":{"readme":"README-ZH.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-12-30T07:13:19.000Z","updated_at":"2025-01-02T08:26:58.000Z","dependencies_parsed_at":"2024-08-24T05:30:27.931Z","dependency_job_id":"8d561f20-b200-424a-bcb6-ea59d1479b8f","html_url":"https://github.com/sj-distributor/eslint-plugin-react","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj-distributor%2Feslint-plugin-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj-distributor%2Feslint-plugin-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj-distributor%2Feslint-plugin-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj-distributor%2Feslint-plugin-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sj-distributor","download_url":"https://codeload.github.com/sj-distributor/eslint-plugin-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251847828,"owners_count":21653582,"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":["eslint","eslint-plugin","eslint-react","perttier","react","react-web"],"created_at":"2024-11-12T09:23:09.915Z","updated_at":"2025-05-01T08:32:03.617Z","avatar_url":"https://github.com/sj-distributor.png","language":"JavaScript","readme":"# 👨‍💻 @sj-distributor/eslint-plugin-react\n\n[![Npm Version](https://img.shields.io/npm/v/npm.svg)](https://www.npmjs.com/package/@sj-distributor/eslint-plugin-react)\n[![MIT License](https://img.shields.io/npm/l/react-native-tab-view.svg?style=flat-square)](https://www.npmjs.com/package/@sj-distributor/eslint-plugin-react)\n[![downloads](https://img.shields.io/npm/dm/eslint-config-standard.svg)](https://www.npmjs.com/package/@sj-distributor/eslint-plugin-react)\n[![Ci](https://github.com/sj-distributor/eslint-plugin-react/actions/workflows/ci.yml/badge.svg)](https://github.com/sj-distributor/eslint-plugin-react/actions/workflows/ci.yml)\n\n用于 react 的 ESLint 预置\n\n## 安装\n\n你首先需要安装 [ESLint](https://eslint.org/) 和约定的第三方插件包:\n\n```sh\nyarn add eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-import eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-simple-import-sort eslint-plugin-unicorn prettier typescript\n```\n\n接下来，安装 `@sj-distributor/eslint-plugin-react`:\n\n```sh\nyarn add @sj-distributor/eslint-plugin-react\n```\n\n## 使用\n\nAdd `eslint-plugin-react` to the extends section of your `.eslintrc` configuration file:\n\n```json\n{\n  \"extends\": [\"plugin:@sj-distributor/react/recommended\"]\n}\n```\n\n## 使用了哪些规则？\n\n- [eslint](https://eslint.org/)\n- [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier#readme)\n- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)\n- [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier#readme)\n- [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)\n- [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks)\n- [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort#readme)\n- [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint#readme)\n- [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint#readme)\n- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn#readme)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsj-distributor%2Feslint-plugin-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsj-distributor%2Feslint-plugin-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsj-distributor%2Feslint-plugin-react/lists"}