visualize_dataset / eslint.config.mjs
mishig's picture
mishig HF Staff
chore: change no-explicit-any rule from error to warning
559dbfa
raw
history blame contribute delete
576 Bytes
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: {
// Allow `any` type as warning - core types are implemented, peripheral areas still need typing
"@typescript-eslint/no-explicit-any": "warn",
},
},
];
export default eslintConfig;