refactor(react-hooks): enable stricter effect rules
Turn on react-hooks/set-state-in-effect and react-hooks/incompatible-library, then remove effect-driven local state sync patterns across affected pages. Keep behavior stable by deriving values from source state, remounting tab state by role key, and replacing useForm watch with useWatch.
This commit is contained in:
+2
-2
@@ -16,8 +16,8 @@ const eslintConfig = defineConfig([
|
||||
},
|
||||
rules: {
|
||||
"react-hooks/exhaustive-deps": "error",
|
||||
"react-hooks/set-state-in-effect": "off",
|
||||
"react-hooks/incompatible-library": "off",
|
||||
"react-hooks/set-state-in-effect": "error",
|
||||
"react-hooks/incompatible-library": "error",
|
||||
"@next/next/no-async-client-component": "error",
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
"@typescript-eslint/no-non-null-assertion": "error",
|
||||
|
||||
Reference in New Issue
Block a user