proposal: no-prop-types#460
Open
NisargIO wants to merge 1 commit into
Open
Conversation
v3 auto-discovered draft (accepted-review-sourced). No implementation yet. Pipeline: millionco/react-doctor-evals#11
|
✅ No new issues Reviewed by reactreview for commit cc61443. Configure here. |
Member
|
yes but you need to check the react version!!! |
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.
Proposal:
react-doctor/no-prop-typesarchitecturewarnNEW::no-prop-typesWhy the bug exists
Generality check
Sources
Discovered by the react-doctor-evals discovery flywheel mining bug-fix evidence across React OSS repos. This proposal was sourced from the accepted-review signal (a reviewer commented + the author edited the file in response + the thread was marked resolved). Pipeline:
Backing evidence
react-native-elements/react-native-elements-packages/base/src/AirbnbRating/SwipeRating.tsx(AcceptedReviewFixMeta) — reviewer: human @deepktp · PR #3990 · signal: resolved-and-changedValidation prompt
FP-aware guidance for the react-review agent when triaging this rule:
Fix prompt
Positive fixture (SHOULD trigger)
Negative fixture (should NOT trigger)
Proposed AST detector
Would land at
packages/oxlint-plugin-react-doctor/src/plugin/rules/architecture/no-prop-types.ts:Generated by `rde discover` (v3: accepted-review evidence + WHY-reasoning + generality check + explicit abstain). See [millionco/react-doctor-evals#11](https://github.com/millionco/react-doctor-evals/pull/11) for the pipeline. Implementation, test fixtures, and rule registration are deliberately deferred — this PR exists for maintainer triage of the proposal only.
Note
Low Risk
Adds a documentation-only proposal describing a potential new lint rule; no runtime code or rule registration changes are included, so behavior is unchanged.
Overview
Adds a new draft proposal doc
proposals/no-prop-types.mdfor a plannedreact-doctor/no-prop-typeswarning targeting React 19’s removal of runtimepropTypesvalidation.The document includes rationale, evidence link, FP guidance, example fixtures, and a proposed AST detector outline, but does not implement or wire up any rule.
Reviewed by Cursor Bugbot for commit cc61443. Bugbot is set up for automated code reviews on this repo. Configure here.