15K ·GitHub
这是什么?
React Doctor 是一个代码审查工具,用来扫描 React 代码中 AI 编程代理容易引入的那类错误,让不良写法在上线前就被发现。
这是 linter,还是更大的东西?
它更像一个专门的诊断型 linter(即“doctor”式检查),专注于 React 特有的反模式,而不是通用框架或完整的代码格式化工具。
怎么把它跑起来?
克隆这个单体仓库,用 'pnpm install' 安装依赖,再用 'pnpm build' 构建;该包自身的开发循环通过 Turborepo 运行,命令是 'turbo run dev --filter=react-doctor'。
开始之前需要先装什么?
需要 Node.js 20.19+(或 22.13+)和 pnpm 8+,这些要求写在项目的 engines 字段里。
CI 里会自动运行它吗?
仓库里有一个专门的 react-doctor.yml GitHub Actions 工作流,看起来是打算接入 CI 流水线,在每次改动时标记问题。
为什么叫“doctor”?
和 flutter doctor 之类的“doctor”工具一样,它是诊断代码库中的问题,而不只是重新格式化代码。
它是单独一个包,还是更大整体的一部分?
它是一个包(packages/react-doctor),位于一个更大的 pnpm/Turborepo 单体仓库中,该仓库还包含性能基准测试脚本。
What are similar projects?
super-linter, perch, commitlint, lint, openqodex, fallow, procoder, gdp-ts
Which topics is it in?
linter, code-quality, code-review, static-analysis, best-practices, monorepo, ci, cli-tool, skill, agents, coding-agent, web-development