Skip to content
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

Open
2 of 3 tasks
Tracked by #42381
aarongarciah opened this issue Jun 6, 2024 · 0 comments
Open
2 of 3 tasks
Tracked by #42381

[core] Adopt eslint-plugin-react-compiler #42548

aarongarciah opened this issue Jun 6, 2024 · 0 comments
Assignees
Labels
core Infrastructure work going on behind the scenes scope: code-infra Specific to the core-infra product

Comments

@aarongarciah
Copy link
Member

aarongarciah commented Jun 6, 2024

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

  • Follow the rules of React in our code so it can be optimized by the React compiler in the future.
  • Follow React best practices in all of our demos that our consumers use.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes scope: code-infra Specific to the core-infra product
Projects
None yet
Development

No branches or pull requests

2 participants