Skip to content

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

Open
@aarongarciah

Description

@aarongarciah

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

Metadata

Metadata

Assignees

Labels

coreInfrastructure work going on behind the scenesperformancescope: code-infraSpecific to the core-infra product

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions