-
Notifications
You must be signed in to change notification settings - Fork 48.6k
[compiler] Silence ref-in-render errors in ESLint #30843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh/josephsavona/52/base
Are you sure you want to change the base?
Conversation
We need this for compiler correctness but the false positive rate is a bit too high, let's suppress in ESLint for now. [ghstack-poisoned]
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
* Code that breaks the rules of React, but which should not be reported in ESLint due to | ||
* false positives. | ||
*/ | ||
SilentInvalidReact = 'SilentInvalidReact', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm wait, doesn't this PR need to update the ValidateRefAccess pass with the new severity too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i had a bad revert, look now!
We need this for compiler correctness but the false positive rate is a bit too high, let's suppress in ESLint for now. [ghstack-poisoned]
We need this for compiler correctness but the false positive rate is a bit too high, let's suppress in ESLint for now. [ghstack-poisoned]
If you decide to merge this, please can you make it an option? Otherwise for people who already upgraded and added hundreds of eslint suppression comments, would have to undo/remove those and then presumably re-add them at some later point in time. |
Does this mean that despite this ESLint rule change, the compiler will continue to skip optimizing components which render |
Stack from ghstack (oldest at bottom):
We need this for compiler correctness but the false positive rate is a bit too high, let's suppress in ESLint for now.