Skip to content

Commit c9f0985

Browse files
committed
Update react-hooks-eslint-plugin
1 parent 667b79d commit c9f0985

File tree

3 files changed

+494
-352
lines changed

3 files changed

+494
-352
lines changed

eslint.config.mjs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,9 @@ export default tseslint.config(
3737
files: ["**/*.tsx"],
3838
...reactPlugin.configs.flat["jsx-runtime"]
3939
},
40-
// TODO: fix types by updating "eslint-plugin-react-hooks" once the following issue is resolved
41-
// https://github.com/facebook/react/issues/28313
42-
// https://github.com/facebook/react/pull/30774
4340
{
4441
files: ["**/*.{ts,tsx}"],
45-
plugins: {
46-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
47-
"react-hooks": reactHooksPlugin
48-
},
49-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
50-
rules: reactHooksPlugin.configs.recommended.rules
42+
...reactHooksPlugin.configs["recommended-latest"]
5143
},
5244
storybookPlugin.configs["flat/recommended"],
5345
eslintConfigPrettier,

0 commit comments

Comments
 (0)