94 lines
4.6 KiB
Text
94 lines
4.6 KiB
Text
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 30 files in 1.8s
|
||
|
||
React Doctor — web-components
|
||
Score disabled by --no-score. Want something custom to your company? Contact us at https://react.doctor/enterprise.
|
||
|
||
32 issues
|
||
Performance: 2 warnings
|
||
Accessibility: 22 warnings
|
||
Bugs: 1 error, 7 warnings
|
||
|
||
⚠ transition: all animates everything
|
||
react-doctor/no-transition-all
|
||
src/components/checkbox.tsx:31
|
||
⚠ Click handler missing keyboard handler ×3
|
||
react-doctor/click-events-have-key-events
|
||
src/components/dialog.tsx:28
|
||
src/components/image-uploader-neo.tsx:64
|
||
src/components/search-bar.tsx:53
|
||
⚠ Interaction on static element ×3
|
||
react-doctor/no-static-element-interactions
|
||
src/components/dialog.tsx:28
|
||
src/components/image-uploader-neo.tsx:64
|
||
src/components/search-bar.tsx:53
|
||
⚠ Field relies on placeholder text for its label
|
||
react-doctor/no-placeholder-only-field
|
||
src/components/dialog.tsx:80
|
||
⚠ Control missing accessible label ×15
|
||
react-doctor/control-has-associated-label
|
||
src/components/dropdown.tsx:27
|
||
src/components/image-carousel.tsx:32
|
||
src/components/image-gallery-with-delete.tsx:24
|
||
src/components/image-uploader-neo.tsx:80
|
||
src/components/image-uploader.tsx:27
|
||
src/components/image-uploader.tsx:42
|
||
src/components/image-uploader.tsx:51
|
||
src/components/image-viewer.tsx:24
|
||
src/components/image-viewer.tsx:31
|
||
src/components/image-viewer.tsx:45
|
||
src/components/quantifier.tsx:25
|
||
src/components/quantifier.tsx:38
|
||
src/components/quantifier.tsx:61
|
||
src/components/quantifier.tsx:74
|
||
src/components/search-bar.tsx:84
|
||
⚠ Array index used as a key ×7
|
||
react-doctor/no-array-index-as-key
|
||
src/components/image-carousel.tsx:19
|
||
src/components/image-carousel.tsx:33
|
||
src/components/image-gallery-with-delete.tsx:18
|
||
src/components/image-gallery.tsx:11
|
||
src/components/image-uploader-neo.tsx:58
|
||
src/components/image-uploader.tsx:21
|
||
src/components/image-uploader.tsx:36
|
||
⚠ createObjectURL without revokeObjectURL
|
||
react-doctor/no-create-object-url-without-revoke
|
||
src/components/image-uploader-neo.tsx:45
|
||
✖ Ref mutated during render
|
||
react-doctor/no-ref-current-in-render
|
||
src/hooks/use-focus-callback.ts:5
|
||
Full diagnostics written to /var/folders/6t/3blzq7_j6p95xzry6t7c14hw0000gn/T/react-doctor-417da00d-48b0-4a0f-b434-4a7ba9cf1dca
|
||
|
||
────────────────────────────────────────────────────────────
|
||
|
||
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.
|