import mantine from "eslint-config-mantine";
import tseslint from "typescript-eslint";

export default tseslint.config(
    ...mantine,
    { ignores: ["**/*.{mjs,cjs,js,d.ts,d.mts}"] },
    {
        files: ["**/*.story.tsx"],
        rules: {
            "no-console": "off",
        },
    },
    {
        files: ["**/*.{ts,tsx}"],
        rules: {
            "no-console": "off",
            "react/jsx-curly-brace-presence": "off",
            "curly": "off",
        },
    },
    {
        files: ["src/client/**/*.{ts,tsx}"],
        rules: {
            "import/no-useless-path-segments": "off",
        },
        linterOptions: {
            reportUnusedDisableDirectives: false,
        },
    }
);
