23 lines
722 B
JavaScript
23 lines
722 B
JavaScript
// eslint.config.mjs
|
|
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
import nextPlugin from "@next/eslint-plugin-next";
|
|
|
|
/** @type {import("eslint").Linter.FlatConfig[]} */
|
|
export default [
|
|
js.configs.recommended, // Basis-JS-Regeln
|
|
...tseslint.configs.recommended, // TS-Parser + empfohlene TS-Regeln (flat)
|
|
// Next-Regeln als Flat-Block: Plugin-Objekt + Rules aus der Next-Config
|
|
{
|
|
plugins: {
|
|
"@next/next": nextPlugin,
|
|
},
|
|
rules: {
|
|
...nextPlugin.configs["core-web-vitals"].rules,
|
|
},
|
|
},
|
|
// Ignorieren, damit's ruhig/schnell läuft
|
|
{
|
|
ignores: ["node_modules/**", ".next/**", "dist/**", "coverage/**", "prisma/**", "next-env.d.ts" ],
|
|
},
|
|
];
|