import { dirname } from 'node:path' import { fileURLToPath } from 'node:url' import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ baseDirectory: dirname(fileURLToPath(import.meta.url)) }) export default [ { ignores: ['.next/**', 'node_modules/**', 'next-env.d.ts', 'playwright-report/**'] }, ...compat.extends('next/core-web-vitals', 'next/typescript'), { rules: { // Sprachkonvention: Oberflaechentexte gehoeren nach lib/i18n/de.ts, // nie hart ins JSX. Siehe CLAUDE.md. '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, ], '@typescript-eslint/no-explicit-any': 'error', }, }, ]