{"id":19810737,"url":"https://github.com/sj-distributor/eslint-plugin-react-native","last_synced_at":"2025-05-01T08:32:04.529Z","repository":{"id":61952493,"uuid":"556516857","full_name":"sj-distributor/eslint-plugin-react-native","owner":"sj-distributor","description":"👨‍💻 ESLint presets for react native","archived":false,"fork":false,"pushed_at":"2024-05-03T03:09:21.000Z","size":260,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T08:44:07.019Z","etag":null,"topics":["eslint","eslint-plugin","eslint-prettier","eslint-react-native","perttier","reactnative"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@sj-distributor/eslint-plugin-react-native","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-10-24T02:05:13.000Z","updated_at":"2024-11-20T00:54:42.000Z","dependencies_parsed_at":"2024-05-03T03:27:28.885Z","dependency_job_id":"4bbb9fa8-166f-4c4b-aab4-ddce95d93acb","html_url":"https://github.com/sj-distributor/eslint-plugin-react-native","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"779b13a0c22b8038a70e1a42428d53ff8af95696"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj-distributor%2Feslint-plugin-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj-distributor%2Feslint-plugin-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj-distributor%2Feslint-plugin-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sj-distributor%2Feslint-plugin-react-native/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-native/tar.gz/refs/heads/master","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-prettier","eslint-react-native","perttier","reactnative"],"created_at":"2024-11-12T09:23:09.864Z","updated_at":"2025-05-01T08:32:04.261Z","avatar_url":"https://github.com/sj-distributor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👨‍💻 @sj-distributor/eslint-plugin-react-native\n\n[![Npm Version](https://img.shields.io/npm/v/npm.svg)](https://www.npmjs.com/package/@sj-distributor/eslint-plugin-react-native)\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-native)\n[![downloads](https://img.shields.io/npm/dm/eslint-config-standard.svg)](https://www.npmjs.com/package/@sj-distributor/eslint-plugin-react-native)\n[![Ci](https://github.com/sj-distributor/eslint-plugin-react-native/actions/workflows/ci.yml/badge.svg)](https://github.com/sj-distributor/eslint-plugin-react-native/actions/workflows/ci.yml)\n\n用于 react native 的 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 eslint-plugin-eslint-plugin --dev\n```\n\n接下来，安装 `@sj-distributor/eslint-plugin-react-native`:\n\n```sh\nyarn add @sj-distributor/eslint-plugin-react-native --dev\n```\n\n## 使用\n\nAdd `eslint-plugin-react-native` to the extends section of your `.eslintrc` configuration file:\n\n```json\n{\n  \"extends\": [\"plugin:@sj-distributor/react-native/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-eslint-plugin](https://github.com/eslint-community/eslint-plugin-eslint-plugin#readme)\n- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)\n- [eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node#readme)\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-react-native](https://github.com/intellicode/eslint-plugin-react-native)\n- [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort#readme)\n- [@typescript-eslint](https://typescript-eslint.io/)\n- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsj-distributor%2Feslint-plugin-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsj-distributor%2Feslint-plugin-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsj-distributor%2Feslint-plugin-react-native/lists"}