diff --git a/template-eslint/react-js/eslint.config.mjs b/template-eslint/react-js/eslint.config.mjs index 8b18f63..cdea76f 100644 --- a/template-eslint/react-js/eslint.config.mjs +++ b/template-eslint/react-js/eslint.config.mjs @@ -1,4 +1,4 @@ -import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'; +import { fixupConfigRules } from '@eslint/compat'; import js from '@eslint/js'; import reactHooks from 'eslint-plugin-react-hooks'; import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js'; @@ -19,7 +19,7 @@ export default [ ]), { plugins: { - 'react-hooks': fixupPluginRules(reactHooks), + 'react-hooks': reactHooks, }, rules: { ...reactHooks.configs.recommended.rules, diff --git a/template-eslint/react-js/package.json b/template-eslint/react-js/package.json index 54eb22e..f666bd3 100644 --- a/template-eslint/react-js/package.json +++ b/template-eslint/react-js/package.json @@ -10,7 +10,7 @@ "@eslint/js": "^9.9.1", "eslint": "^9.9.1", "eslint-plugin-react": "^7.35.0", - "eslint-plugin-react-hooks": "^4.6.2", + "eslint-plugin-react-hooks": "^5.1.0-rc.0", "globals": "^15.9.0" } } diff --git a/template-eslint/react-ts/eslint.config.mjs b/template-eslint/react-ts/eslint.config.mjs index 8825526..b293edd 100644 --- a/template-eslint/react-ts/eslint.config.mjs +++ b/template-eslint/react-ts/eslint.config.mjs @@ -1,4 +1,4 @@ -import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'; +import { fixupConfigRules } from '@eslint/compat'; import js from '@eslint/js'; import reactHooks from 'eslint-plugin-react-hooks'; import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js'; @@ -21,7 +21,7 @@ export default [ ]), { plugins: { - 'react-hooks': fixupPluginRules(reactHooks), + 'react-hooks': reactHooks, }, rules: { ...reactHooks.configs.recommended.rules, diff --git a/template-eslint/react-ts/package.json b/template-eslint/react-ts/package.json index 9d6b9e9..473b5ef 100644 --- a/template-eslint/react-ts/package.json +++ b/template-eslint/react-ts/package.json @@ -10,7 +10,7 @@ "@eslint/js": "^9.9.1", "eslint": "^9.9.1", "eslint-plugin-react": "^7.35.0", - "eslint-plugin-react-hooks": "^4.6.2", + "eslint-plugin-react-hooks": "^5.1.0-rc.0", "globals": "^15.9.0", "typescript-eslint": "^8.2.0" }