Skip to content

Commit 2a8fdf5

Browse files
CopilotGarrisonD
andcommitted
Use official flat config from eslint-plugin-react-hooks
Co-authored-by: GarrisonD <13675895+GarrisonD@users.noreply.github.com>
1 parent d242706 commit 2a8fdf5

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

eslint.config.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,7 @@ export default [
7878
pluginReact.configs.flat["jsx-runtime"],
7979
pluginJsxA11y.flatConfigs.recommended,
8080
pluginImport.flatConfigs.recommended,
81-
{
82-
plugins: {
83-
"react-hooks": pluginReactHooks,
84-
},
85-
rules: {
86-
"react-hooks/rules-of-hooks": "error",
87-
"react-hooks/exhaustive-deps": "warn",
88-
},
89-
},
81+
pluginReactHooks.configs.flat["recommended-latest"],
9082
{
9183
languageOptions: {
9284
ecmaVersion: "latest",

0 commit comments

Comments
 (0)