-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Open
Labels
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.