{"id":22468932,"url":"https://github.com/huijiewei/resolid-config","last_synced_at":"2026-03-09T03:06:45.383Z","repository":{"id":227287897,"uuid":"769054309","full_name":"huijiewei/resolid-config","owner":"huijiewei","description":"Eslint and Prettier config","archived":false,"fork":false,"pushed_at":"2026-03-04T01:50:03.000Z","size":405,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-04T06:13:21.616Z","etag":null,"topics":["eslint","lint","prettier","typescript"],"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/huijiewei.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-08T08:49:32.000Z","updated_at":"2026-03-04T01:49:43.000Z","dependencies_parsed_at":"2024-04-26T03:23:32.950Z","dependency_job_id":"f201815d-8035-4dba-82ed-f3363b96e788","html_url":"https://github.com/huijiewei/resolid-config","commit_stats":null,"previous_names":["huijiewei/resolid-config"],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/huijiewei/resolid-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huijiewei%2Fresolid-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huijiewei%2Fresolid-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huijiewei%2Fresolid-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huijiewei%2Fresolid-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huijiewei","download_url":"https://codeload.github.com/huijiewei/resolid-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huijiewei%2Fresolid-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30281166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["eslint","lint","prettier","typescript"],"created_at":"2024-12-06T11:20:40.932Z","updated_at":"2026-03-09T03:06:45.374Z","avatar_url":"https://github.com/huijiewei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @resolid/config\n\nResolid 通用配置, 包含了 `TypeScript`, `Oxlint` 的基础配置\n\n## 安装\n\n```bash\npnpm add -D @resolid/config oxlint typescript\n```\n\n## TypeScript 配置\n\n增加下面内容到 `tsconfig.json`\n\n### 普通项目\n\n```json\n{\n  \"extends\": \"@resolid/config/tsconfig/base.json\"\n}\n```\n\n### React 项目\n\n```json\n{\n  \"extends\": \"@resolid/config/tsconfig/react.json\"\n}\n```\n\n## Oxlint 配置\n\n### Javascript Lint 配置\n\n```js\n// oxlint.config.ts\nimport javascriptConfig from \"@resolid/config/oxlint/javascript\";\nimport { defineConfig } from \"oxlint\";\n\nexport default defineConfig({\n  extends: [javascriptConfig],\n});\n```\n\n### TypeScript Lint 配置\n\n```js\n// oxlint.config.ts\nimport typescriptConfig from \"@resolid/config/oxlint/typescript\";\nimport { defineConfig } from \"oxlint\";\n\nexport default defineConfig({\n  extends: [typescriptConfig],\n});\n```\n\n### React Lint 配置\n\n由于 Oxlint 配置解析器的限制，目前你必须直接安装所需的 JS 插件\n\n```shell\npnpm add -D eslint-plugin-react-hooks eslint-plugin-react-you-might-not-need-an-effect\n```\n\n```js\n// oxlint.config.ts\nimport reactConfig from \"@resolid/config/oxlint/react\";\nimport { defineConfig } from \"oxlint\";\n\nexport default defineConfig({\n  extends: [reactConfig],\n});\n```\n\n### 环境 Lint 设置\n\n```js\n// oxlint.config.ts\n// 浏览器环境\nimport browserConfig from \"@resolid/config/oxlint/browser\";\n// Node 环境\nimport nodeConfig from \"@resolid/config/oxlint/node\";\nimport { defineConfig } from \"oxlint\";\n\nexport default defineConfig({\n  extends: [browserConfig, nodeConfig],\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuijiewei%2Fresolid-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuijiewei%2Fresolid-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuijiewei%2Fresolid-config/lists"}