export default [
    {
        files: ["assets/**/*.js"],
        languageOptions: {
            globals: {
                document: "readonly",
                window: "readonly",
                console: "readonly",
                setTimeout: "readonly",
                globalThis: "readonly",
                navigator: "readonly",
                fetch: "readonly",
                caches: "readonly",
                Request: "readonly",
                Response: "readonly",
                BroadcastChannel: "readonly",
                DOMParser: "readonly",
                setInterval: "readonly",
                clearInterval: "readonly",
                URLSearchParams: "readonly",
                FormData: "readonly",
            },
        },
        rules: {
            "no-unused-vars": "warn",
            "no-undef": "error",
            "no-console": "warn",
            "eqeqeq": "error",
            "no-var": "error",
            "prefer-const": "warn",
        },
    },
    {
        ignores: ["node_modules/", "public/build/", "vendor/", "public/sw.js", "public/workbox/", "public/idb/", "assets/vendor/"],
    },
];
