2025-04-28 00:47:36 +00: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 = [
|
2025-04-30 02:10:48 +00:00
|
|
|
...compat.config({
|
|
|
|
|
extends: ["next/core-web-vitals", "next/typescript"],
|
|
|
|
|
rules: {
|
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
|
},
|
|
|
|
|
}),
|
2025-04-28 00:47:36 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default eslintConfig;
|