Resolving dependencies Resolved, downloaded and extracted [2] Agent guidance - Treat React Doctor diagnostics as starting hypotheses. Read the relevant code before confirming or suppressing each finding. - For each group, decide true positive, false positive, or needs-human-review, then assign high/medium/low confidence. - Do not suppress a finding without evidence from the file in question. Confidence requires code context. - Understand the root cause before editing. Fix the underlying code instead of changing react-doctor config or suppressing rules unless explicitly asked. - Investigate deeply where relevant: race conditions, security-sensitive flows, state propagation, multi-file refactors, and downstream dependency chains. - Ignore pure style preferences, theoretical issues without real impact, missing features, and unrelated pre-existing code. - Start with high-confidence fixes that preserve behavior. Leave low-confidence or product-dependent changes as notes. - Run `npx react-doctor@latest --verbose --scope changed` before and after changes, plus relevant tests after each focused batch. - When available, spawn subagents or isolated worktrees for independent rule families, then review and merge only the best safe fixes. - Split unrelated, broad, or behavior-changing work into separate PRs/branches instead of one large cleanup. - When one rule spans dozens of files (a migration-scale change), fix a representative sample first, confirm the recipe holds, and get the code owner's sign-off before changing the rest. Don't mass-fix a broad pattern in one unreviewed pass. - For confirmed issues that cannot be fixed now, create GitHub issues with the rule, file/line, confidence, impact, and proposed fix. - If a fix needs an API, UX, or architecture decision, stop and ask before editing. ✔ Scanned 49 files in 2.5s React Doctor — @packages/db_helper_sqlite Score disabled by --no-score. Want something custom to your company? Contact us at https://react.doctor/enterprise. 46 issues Performance: 36 warnings Bugs: 10 warnings ⚠ await inside a loop ×35 react-doctor/async-await-in-loop src/admin-apis/const.ts:22 src/admin-apis/const.ts:45 src/admin-apis/const.ts:68 src/admin-apis/const.ts:98 src/admin-apis/order.ts:617 src/admin-apis/order.ts:624 src/admin-apis/product.ts:471 src/admin-apis/product.ts:548 src/admin-apis/product.ts:670 src/admin-apis/product.ts:1286 src/admin-apis/slots.ts:63 src/db/porter.ts:36 src/db/porter.ts:54 src/db/porter.ts:72 src/db/porter.ts:90 src/db/seed.ts:27 src/db/seed.ts:39 src/db/seed.ts:51 src/db/seed.ts:74 src/db/seed.ts:89 src/db/seed.ts:124 src/db/seed.ts:141 src/lib/run-batched.ts:33 src/lib/seed.ts:15 src/lib/seed.ts:31 src/lib/seed.ts:47 src/lib/seed.ts:67 src/lib/seed.ts:100 src/lib/seed.ts:120 src/superadmin-apis/regions.ts:471 src/superadmin-apis/regions.ts:513 src/user-apis/auth.ts:220 src/user-apis/order.ts:355 src/user-apis/user-regions.ts:56 src/user-apis/user-regions.ts:73 ⚠ Dimensions.get over useWindowDimensions react-doctor/rn-no-dimensions-get src/admin-apis/order.ts:621 ⚠ Sequential independent awaits ×9 react-doctor/server-sequential-independent-await src/admin-apis/product.ts:1010 src/db/seed.ts:63 src/db/seed.ts:67 src/db/seed.ts:69 src/superadmin-apis/regions.ts:108 src/superadmin-apis/regions.ts:166 src/user-apis/product.ts:56 src/user-apis/product.ts:125 src/user-apis/stores.ts:21 ⚠ Array lookup inside a loop react-doctor/js-set-map-lookups src/user-apis/user-regions.ts:71 Full diagnostics written to /var/folders/6t/3blzq7_j6p95xzry6t7c14hw0000gn/T/react-doctor-e2a05c4e-527a-40ef-9729-5487af566504 ──────────────────────────────────────────────────────────── Docs: https://react.doctor/docs Learn more about fixing issues, setting up CI/CD, and configuring rules with a config file GitHub: https://github.com/millionco/react-doctor Report issues and star the repository! React Doctor is not installed in this project. Ask the user if they would like to set it up, then run: npx react-doctor install --yes This adds agent skill files, a `doctor` package script, and react-doctor as a dev dependency.