Skip to content

[Suggestion]: Change recommended React linting plugin #7932

@thernstig

Description

@thernstig

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions