Skip to content

Commit 11cb6b5

Browse files
authored
Clarify eslint-plugin-react-hooks configuration details (#8052)
Updated description of eslint-plugin-react-hooks configuration and preset.
1 parent 7b8612e commit 11cb6b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/learn/react-compiler/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Install the ESLint plugin:
176176
npm install -D eslint-plugin-react-hooks@^6.1.1
177177
</TerminalBlock>
178178

179-
If you haven't already configured eslint-plugin-react-hooks, follow the [installation instructions in the readme](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md#installation). The compiler rule is enabled by default in the latest RC, so no additional configuration is needed.
179+
If you haven't already configured eslint-plugin-react-hooks, follow the [installation instructions in the readme](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md#installation). The compiler rules are available in the `recommended-latest` preset.
180180

181181
The ESLint rule will:
182182
- Identify violations of the [Rules of React](/reference/rules)
@@ -246,4 +246,4 @@ Now that you have React Compiler installed, learn more about:
246246
- [Configuration options](/reference/react-compiler/configuration) to customize the compiler
247247
- [Incremental adoption strategies](/learn/react-compiler/incremental-adoption) for existing codebases
248248
- [Debugging techniques](/learn/react-compiler/debugging) for troubleshooting issues
249-
- [Compiling Libraries guide](/reference/react-compiler/compiling-libraries) for compiling your React library
249+
- [Compiling Libraries guide](/reference/react-compiler/compiling-libraries) for compiling your React library

0 commit comments

Comments
 (0)