19 lines
500 B
JavaScript
19 lines
500 B
JavaScript
import { dirname } from "path";
|
|
import { fileURLToPath } from "url";
|
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
|
|
const compat = new FlatCompat({
|
|
baseDirectory: __dirname,
|
|
});
|
|
|
|
export default [
|
|
// ⬇️ Alles unter src/generated/** wird vom Lint ausgeschlossen
|
|
{ ignores: ['src/generated/**'] },
|
|
|
|
// dein bestehendes Next/TS-Setup
|
|
...compat.extends('next/core-web-vitals', 'next/typescript'),
|
|
]
|