Files
examjam-frontend/eslint.config.mjs
2025-07-28 20:22:04 +06:00

26 lines
628 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"),
{
rules: {
// Disable the no-explicit-any rule
"@typescript-eslint/no-explicit-any": "off",
// Alternative: Make it a warning instead of error
// "@typescript-eslint/no-explicit-any": "warn",
},
},
];
export default eslintConfig;