[internal] Adopt eslint-plugin-react-compiler
Open
@aarongarciah is already working on this.
Since Jun 7, 2024.
internal
performance
scope: code-infra
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
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
- Configure the ESLint plugin. Only activate locally and manually while it's experimental (https://github.com/mui/material-ui/pull/42555)
- Disable the ESLint plugin for Base (#42563)
- #42564
Search keywords: react compiler, eslint
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.