reactjs / reactjs/react.dev

[Suggestion]: Change recommended React linting plugin

Open
#7,932 5 comments 0 reactions 1 assignee View on GitHub

@poteto is already working on this.

Since Sep 3, 2025.

type: documentation
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Summary

Change recommended React linting config eslint-config-react-app to eslint-plugin-react.

Page

https://react.dev/learn/editor-setup

Details

This text probably recommends the wrong config:

Make sure that you’ve enabled all the eslint-plugin-react-hooks rules for your project. They are essential and catch the most severe bugs early. The recommended eslint-config-react-app preset already includes them.

If using the new ESLint flat config format, it is better to use the configs included with https://www.npmjs.com/package/eslint-plugin-react.

Essentially I think the paragraph should recommend both eslint-plugin-react and eslint-plugin-react-hooks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.