forked from admin/hair-keeper
36 lines
774 B
JavaScript
36 lines
774 B
JavaScript
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"),
|
|
{
|
|
ignores: [
|
|
"node_modules/**",
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"next-env.d.ts",
|
|
"public/**",
|
|
],
|
|
},
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"prefer-const": "off",
|
|
"@next/next/no-img-element": "off"
|
|
},
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|