ADR-005: ESLint 10 Flat Config
Beslissing
Section titled “Beslissing”ESLint 10 flat config met typescript-eslint strict mode en eslint-plugin-react-hooks v7 (React 19 compatible).
Context
Section titled “Context”React 19 verandert de hooks regels (bijv. ref als prop, use() hook). De legacy .eslintrc config ondersteunt dit niet. ESLint 10 vereist flat config.
Overwegingen
Section titled “Overwegingen”Flat config (gekozen):
- Vereist door ESLint 10
- Betere TypeScript integratie
- React 19 hooks rules v7
- 0 warnings beleid enforceable
Legacy config behouden:
- Niet compatible met ESLint 10
- Verouderde React hooks rules
Gevolgen
Section titled “Gevolgen”eslint.config.jsin elke app (flat config)typescript-eslintstrict preset- 172 warnings opgelost naar 0
- Alle
eslint-disablecomments vereisen regel-naam