vmi-wd-frontend Public
| 1 | import { dirname } from "path"; |
| 2 | import { fileURLToPath } from "url"; |
| 3 | import { FlatCompat } from "@eslint/eslintrc"; |
| 4 | |
| 5 | const __filename = fileURLToPath(import.meta.url); |
| 6 | const __dirname = dirname(__filename); |
| 7 | |
| 8 | const compat = new FlatCompat({ |
| 9 | baseDirectory: __dirname, |
| 10 | }); |
| 11 | |
| 12 | const eslintConfig = [ |
| 13 | { ignores: [".next/", "next-env.d.ts"] }, |
| 14 | ...compat.extends("next/core-web-vitals", "next/typescript"), |
| 15 | ]; |
| 16 | |
| 17 | export default eslintConfig; |