docker-fobi/docker-compose/logintrainer/eslint.config.mjs
Jesko Anschütz ea52d39e6c logintrainer
2025-11-04 21:35:45 +01:00

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" ],
},
];