{"id":49062500,"url":"https://github.com/resolid/config","last_synced_at":"2026-05-23T16:01:23.308Z","repository":{"id":227287897,"uuid":"769054309","full_name":"resolid/config","owner":"resolid","description":"Shared TypeScript, Oxlint, and Oxfmt configurations","archived":false,"fork":false,"pushed_at":"2026-05-17T02:27:14.000Z","size":594,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-17T04:36:45.785Z","etag":null,"topics":["eslint","lint","oxfmt","oxlint","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/resolid.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-05-17T02:26:54.000Z","dependencies_parsed_at":"2024-04-26T03:23:32.950Z","dependency_job_id":"f201815d-8035-4dba-82ed-f3363b96e788","html_url":"https://github.com/resolid/config","commit_stats":null,"previous_names":["huijiewei/resolid-config","resolid/config"],"tags_count":75,"template":false,"template_full_name":null,"purl":"pkg:github/resolid/config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resolid%2Fconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resolid%2Fconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resolid%2Fconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resolid%2Fconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/resolid","download_url":"https://codeload.github.com/resolid/config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resolid%2Fconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33402174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"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","oxfmt","oxlint","prettier","typescript"],"created_at":"2026-04-20T03:05:39.543Z","updated_at":"2026-05-23T16:01:23.297Z","avatar_url":"https://github.com/resolid.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 oxfmt oxlint-tsgolint 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### Node 项目\n\n```json\n{\n  \"extends\": \"@resolid/config/tsconfig/node.json\"\n}\n```\n\n### React 项目\n\n```json\n{\n  \"extends\": \"@resolid/config/tsconfig/react.json\"\n}\n```\n\n### 库项目 (extends 多个项目类型,库项目需放在最后)\n\n```json\n{\n  \"extends\": \"@resolid/config/tsconfig/lib.json\"\n}\n```\n\n## Oxlint 配置\n\n### Javascript Lint 配置\n\n```js\n// oxlint.config.ts\nimport { defineConfig } from \"oxlint\";\nimport javascriptConfig from \"@resolid/config/oxlint/javascript\";\n\nexport default defineConfig({\n  extends: [javascriptConfig],\n});\n```\n\n### TypeScript Lint 配置\n\n```js\n// oxlint.config.ts\nimport { defineConfig } from \"oxlint\";\nimport typescriptConfig from \"@resolid/config/oxlint/typescript\";\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 { defineConfig } from \"oxlint\";\nimport reactConfig from \"@resolid/config/oxlint/react\";\n\nexport default defineConfig({\n  extends: [reactConfig],\n});\n```\n\n### 环境 Lint 设置\n\n```js\n// oxlint.config.ts\nimport { defineConfig } from \"oxlint\";\n// 浏览器环境\nimport browserConfig from \"@resolid/config/oxlint/browser\";\n// Node 环境\nimport nodeConfig from \"@resolid/config/oxlint/node\";\n\nexport default defineConfig({\n  extends: [browserConfig, nodeConfig],\n});\n```\n\n## Oxfmt 配置\n\n```js\nimport { oxfmtConfig } from \"@resolid/config/oxfmt\";\n\nexport default oxfmtConfig({});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresolid%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresolid%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresolid%2Fconfig/lists"}