fix: resolve all 25 ESLint react-hooks and react-refresh violations
Replace useEffect-based state resets in dialogs with React's render-time state adjustment pattern. Wrap ref assignments in hooks with useEffect. Suppress known third-party library warnings (shadcn CVA exports, TanStack Table). Remove warn downgrades from eslint config.
This commit was merged in pull request #1.
This commit is contained in:
@@ -20,9 +20,6 @@ export default defineConfig([
|
||||
globals: globals.browser,
|
||||
},
|
||||
rules: {
|
||||
// TODO: fix these incrementally — pre-existing violations from react-hooks v7 upgrade
|
||||
'react-hooks/set-state-in-effect': 'warn',
|
||||
'react-hooks/refs': 'warn',
|
||||
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user