mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[eprh] Enable react-compiler rule by default
Updates eslint-plugin-react-hooks to enable the compiler rule by default.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user