2025-05-03 20:18:33 +02:00
|
|
|
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,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const eslintConfig = [
|
|
|
|
|
...compat.extends("next/core-web-vitals", "next/typescript"),
|
2025-05-09 07:52:50 +02:00
|
|
|
{
|
|
|
|
|
rules: {
|
|
|
|
|
"@next/next/no-img-element": "off",
|
2025-05-12 14:03:08 +02:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
|
"warn",
|
|
|
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
|
|
|
],
|
2025-05-09 07:52:50 +02:00
|
|
|
},
|
|
|
|
|
},
|
2025-05-03 20:18:33 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default eslintConfig;
|