-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[core] Adopt eslint-plugin-react-compiler #42548
Comments
A larger issue on this: #44336. |
@oliviertassinari we need to try it first and see how it goes. Agree on spending time first on Base UI. I wouldn't spend time today adopting the compiler in Material UI v6. Adopting the ESLint plugin is very interesting since it surfaces many potential issues preventing us from adopting the compiler. Even if we don't adopt the compiler, the ESLint plugin seems very helpful for writing code "the React way". |
@aarongarciah Right, ok, for fixed like #42559, this makes sense, this logic was borderline buggy. |
@oliviertassinari truth is the code in example you linked is mutating props, the ESLint plugin is surfacing a real "issue" that ideally should never happen in React. Regarding performance, is it really that bad? That code is inside |
Hello! |
Context
The React Compiler optimizes code that follows the rules of React. In order to make it easier to write React compliant code, the React team released an ESLint plugin that reports broken React rules: eslint-plugin-react-compiler.
The compiler requires React 19, but the ESLint plugin can be adopted earlier to be prepared.
Motivation
Note: at the time of writing the ESLint is experimental but it has proven to be useful for the Toolpad team.
Tasks
Search keywords: react compiler, eslint
The text was updated successfully, but these errors were encountered: