Skip to content

ADR-005: ESLint 10 Flat Config

ESLint 10 flat config met typescript-eslint strict mode en eslint-plugin-react-hooks v7 (React 19 compatible).

React 19 verandert de hooks regels (bijv. ref als prop, use() hook). De legacy .eslintrc config ondersteunt dit niet. ESLint 10 vereist flat config.

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
  • eslint.config.js in elke app (flat config)
  • typescript-eslint strict preset
  • 172 warnings opgelost naar 0
  • Alle eslint-disable comments vereisen regel-naam