From ec29b1e4f21693707a60bcc34f9e9bdc737bbd62 Mon Sep 17 00:00:00 2001 From: lauren Date: Fri, 3 Oct 2025 19:27:46 -0400 Subject: [PATCH] Clarify eslint-plugin-react-hooks configuration details Updated description of eslint-plugin-react-hooks configuration and preset. --- src/content/learn/react-compiler/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/learn/react-compiler/installation.md b/src/content/learn/react-compiler/installation.md index 0b4375136d9..7987e12640b 100644 --- a/src/content/learn/react-compiler/installation.md +++ b/src/content/learn/react-compiler/installation.md @@ -176,7 +176,7 @@ Install the ESLint plugin: npm install -D eslint-plugin-react-hooks@^6.1.1 -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. +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. The ESLint rule will: - Identify violations of the [Rules of React](/reference/rules) @@ -246,4 +246,4 @@ Now that you have React Compiler installed, learn more about: - [Configuration options](/reference/react-compiler/configuration) to customize the compiler - [Incremental adoption strategies](/learn/react-compiler/incremental-adoption) for existing codebases - [Debugging techniques](/learn/react-compiler/debugging) for troubleshooting issues -- [Compiling Libraries guide](/reference/react-compiler/compiling-libraries) for compiling your React library \ No newline at end of file +- [Compiling Libraries guide](/reference/react-compiler/compiling-libraries) for compiling your React library