Skip to content

Commit 281661e

Browse files
committed
load all the rules and only overrride the non default one
1 parent 055e8e2 commit 281661e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default typescript.config(
2525
rules: {
2626
...react.configs.recommended.rules,
2727
...react.configs['jsx-runtime'].rules,
28+
...reactHooks.configs['recommended-latest'].rules,
2829
'react-refresh/only-export-components': [
2930
'warn',
3031
{ allowConstantExport: true },
@@ -78,7 +79,6 @@ export default typescript.config(
7879
'@typescript-eslint/no-unused-vars': 'warn',
7980
'@typescript-eslint/require-await': 'warn',
8081
// react hooks
81-
'react-hooks/rules-of-hooks': 'error',
8282
'react-hooks/exhaustive-deps': 'error',
8383
},
8484
settings: { react: { version: 'detect' } },

0 commit comments

Comments
 (0)