Repository navigation
chore: add react-doctor as an eslint plugin - #538
Merged
Merged
Conversation
Enables the recommended rules of oxlint-plugin-react-doctor, as warnings so the existing reports don't fail the lint. None of them are fixed here.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ESLint doesn't know the react-doctor-disable-next-line comments, so the reports they silence showed up again. The reasons are kept as the descriptions.
Replaces the oxlint plugin with the ESLint one and enables its recommended preset, with every rule as an error. The jsx-no-new-object-as-prop rule is disabled for now.
Created with eslint --suppress-all, so only new reports fail the lint. None of them are fixed here.
Disables jsx-no-new-function-as-prop for now and jsx-no-target-blank permanently, since react/jsx-no-target-blank already covers it. Stops raising the severity of the preset's warnings, and refreshes the suppressions.
useTightScreen reads the media query with useSyncExternalStore instead of copying it into state, and the load listener uses globalThis like the others. Nothing is suppressed anymore, so the suppressions file is gone.
The previous commit only removed the suppressions file. This adds the fixes it was meant to include: useTightScreen subscribes to the media query instead of copying it into state, and the load listener uses globalThis like the other listeners.
fregante
marked this pull request as ready for review
October 10, 2026 17:24
Member
Author
|
Basically a config cleanup PR except for the media query hook, which is a good change. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created by Claude, will be reviewed by @fregante first.
Part of #475. Adds
eslint-plugin-react-doctorwith itsrecommendedpreset, as is.react-doctor/jsx-no-new-object-as-propandreact-doctor/jsx-no-new-function-as-propfor now, as TODOs indisabledRulesreact-doctor/jsx-no-target-blankpermanently (react/jsx-no-target-blankis already off)react-doctor-disable-next-linecomments toeslint-disable-next-line(ESLint ignores the former), keeping the reasonsuseTightScreen.ts,lib/index.tsx), nothing is suppressedOnly the 2 warnings in
GraphDiagram.tsxare left, on purpose.