From d7c140dde08588f4bad0f64f091b97e6f3051b2e Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Wed, 11 Jun 2025 13:06:37 -0400 Subject: [PATCH] [eprh] Enable react-compiler rule by default Updates eslint-plugin-react-hooks to enable the compiler rule by default. --- packages/eslint-plugin-react-hooks/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-plugin-react-hooks/src/index.ts b/packages/eslint-plugin-react-hooks/src/index.ts index 26a2e2b2c4..8f7849565f 100644 --- a/packages/eslint-plugin-react-hooks/src/index.ts +++ b/packages/eslint-plugin-react-hooks/src/index.ts @@ -21,6 +21,7 @@ const rules = { const configRules = { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', + 'react-hooks/react-compiler': 'error', } satisfies Linter.RulesRecord; // Flat config