2025-01-16 10:38:01 +08: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-01-21 18:41:27 +08:00
|
|
|
{
|
|
|
|
rules: {
|
|
|
|
"@typescript-eslint/no-explicit-any": "",
|
|
|
|
},
|
|
|
|
},
|
2025-01-16 10:38:01 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
export default eslintConfig;
|