import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import nextTypescript from "eslint-config-next/typescript";
import js from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
    {
        ignores: ["node_modules", ".next", "postcss.config.cjs", ".eslintignore"],
    },
    js.configs.recommended,
    ...nextCoreWebVitals,
    ...nextTypescript,
    ...tseslint.configs["recommended"],
    {
        rules: {
            "@typescript-eslint/no-explicit-any": "warn",
            "@typescript-eslint/no-unused-vars": ["warn", {
                argsIgnorePattern: "^_",
                varsIgnorePattern: "^_",
                caughtErrorsIgnorePattern: "^_",
            }],
            "@typescript-eslint/no-empty-object-type": "off",
        },
    },
);
