| import { dirname } from "path"; | |
| import { fileURLToPath } from "url"; | |
| import { defineConfig, globalIgnores } from "eslint/config"; | |
| import { FlatCompat } from "@eslint/eslintrc"; | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = dirname(__filename); | |
| const compat = new FlatCompat({ | |
| baseDirectory: __dirname, | |
| }); | |
| const eslintConfig = defineConfig([ | |
| ...compat.extends("next/core-web-vitals"), | |
| globalIgnores([ | |
| "node_modules/**", | |
| ".next/**", | |
| ".next/standalone/**", | |
| "out/**", | |
| "build/**", | |
| "next-env.d.ts", | |
| ]), | |
| { | |
| linterOptions: { | |
| reportUnusedDisableDirectives: false, | |
| }, | |
| }, | |
| ]); | |
| export default eslintConfig; | |