File size: 721 Bytes
f15ff24 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
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;
|