import js from '@eslint/js'; import globals from 'globals'; import tseslint from 'typescript-eslint'; import reactHooks from 'eslint-plugin-react-hooks'; import jsxA11y from 'eslint-plugin-jsx-a11y'; // Alleen regels die fouten vinden; opmaak is aan Prettier export default tseslint.config( { ignores: [ 'dist', 'coverage', '.lighthouseci', 'lighthouse-reports', '.agents', '.claude', '.junie', '.tanstack', 'src/routeTree.gen.ts', ], }, { files: ['**/*.{ts,tsx}'], extends: [ js.configs.recommended, ...tseslint.configs.recommended, reactHooks.configs.flat.recommended, jsxA11y.flatConfigs.recommended, ], languageOptions: { globals: globals.browser, }, }, { files: ['*.{js,cjs}'], extends: [js.configs.recommended], languageOptions: { globals: globals.node, }, }, );