Skip to content

chore(web): add doctor.config.ts for verified non-issues - #28

Merged
PunGrumpy merged 1 commit into
motion/07-reset-button-transitionfrom
motion/08-doctor-config
Aug 7, 2026
Merged

chore(web): add doctor.config.ts for verified non-issues#28
PunGrumpy merged 1 commit into
motion/07-reset-button-transitionfrom
motion/08-doctor-config

Conversation

@PunGrumpy

@PunGrumpy PunGrumpy commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Problem

After the real fixes, two react-doctor rules still fired on patterns that are deliberate and verified correct, keeping the score below 100.

Root Cause

  • no-create-object-url-without-revoke (lib/compress/api.ts, lib/compress/browser.ts, lib/image/ingest.ts): the analyzer is single-file, but these URLs are lifecycle-managed cross-file — runJob revokes the prior result URL on replace/stale runs, and revokeJobUrls (lib/image/revoke.ts) revokes original + result URLs on removal, clear-all, and unmount.
  • no-fetch-in-effect (components/status.tsx): a one-shot client-side health probe that must measure reachability from the user's browser, so it cannot move server-side or into an event handler.

Solution

Adds apps/web/doctor.config.ts with per-file ignore.overrides (rationale documented inline), keeping both rules active everywhere else in the codebase.

Result

bun run doctor reports 100 / 100 — no issues found on the full stack.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pigo Ready Ready Preview Aug 7, 2026 4:58pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
pigo-api Skipped Skipped Aug 7, 2026 4:58pm

@vercel
vercel Bot temporarily deployed to Preview – pigo-api August 7, 2026 16:48 Inactive
@changeset-bot

changeset-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0935fce

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 0935fce.

Two react-doctor rules fire on deliberate, verified-correct patterns:

- no-create-object-url-without-revoke on lib/compress/api.ts,
  lib/compress/browser.ts, lib/image/ingest.ts: the analyzer is
  single-file, but these URLs are revoked cross-file by runJob
  (replace/stale) and revokeJobUrls (remove/clear-all/unmount).
- no-fetch-in-effect on components/status.tsx: a one-shot client-side
  health probe that must run from the user's browser.

Suppressing per-file keeps both rules active everywhere else.
react-doctor now reports 100/100 with no issues.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@PunGrumpy
PunGrumpy force-pushed the motion/08-doctor-config branch from 20e9eef to 0935fce Compare August 7, 2026 16:57
@vercel
vercel Bot temporarily deployed to Preview – pigo-api August 7, 2026 16:57 Inactive
@PunGrumpy
PunGrumpy merged commit 80e3c6d into main Aug 7, 2026
12 of 14 checks passed
@PunGrumpy
PunGrumpy deleted the motion/08-doctor-config branch August 7, 2026 16:59
PunGrumpy added a commit that referenced this pull request Aug 7, 2026
The audit plans served as specs for the motion/react-doctor PR stack
(#19-#28), which is fully merged — the plan documents are now historical
and live in the PR record.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant