Skip to content

Commit bcc1ef9

Browse files
author
erikras-richard-agent
committed
fix: add react-hooks plugin to JS files config in eslint.config.mjs
1 parent fa69c1b commit bcc1ef9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,15 @@ export default [
152152
},
153153
plugins: {
154154
react: reactPlugin,
155+
"react-hooks": reactHooks,
155156
},
156157
rules: {
157158
"no-undef": "error",
158159
"react/jsx-uses-vars": "warn",
159160
"react/react-in-jsx-scope": "off",
160161
"no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], // Enforce _ prefix for unused vars in JS files
162+
"react-hooks/rules-of-hooks": "error",
163+
"react-hooks/exhaustive-deps": "warn",
161164
},
162165
},
163166

0 commit comments

Comments
 (0)