mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-29 15:31:16 -07:00
Chore: full react hooks eslint compliance (#7040)
This commit is contained in:
@@ -65,24 +65,6 @@ export default defineConfig([
|
||||
allowElseIf: true,
|
||||
},
|
||||
],
|
||||
|
||||
// Keep the pre-eslint-plugin-react-hooks v6 lint policy until rules are adopted incrementally
|
||||
"react-hooks/config": "off",
|
||||
"react-hooks/error-boundaries": "off",
|
||||
"react-hooks/exhaustive-deps": "warn",
|
||||
"react-hooks/gating": "off",
|
||||
"react-hooks/globals": "off",
|
||||
"react-hooks/immutability": "off",
|
||||
"react-hooks/incompatible-library": "off",
|
||||
"react-hooks/preserve-manual-memoization": "off",
|
||||
"react-hooks/purity": "off",
|
||||
"react-hooks/refs": "off",
|
||||
"react-hooks/rules-of-hooks": "error",
|
||||
"react-hooks/set-state-in-effect": "off",
|
||||
"react-hooks/set-state-in-render": "off",
|
||||
"react-hooks/static-components": "off",
|
||||
"react-hooks/unsupported-syntax": "off",
|
||||
"react-hooks/use-memo": "off",
|
||||
},
|
||||
},
|
||||
// Vitest tests often intentionally place imports after `vi.mock(...)` to ensure
|
||||
|
||||
Reference in New Issue
Block a user