import svelte from "eslint-plugin-svelte";
import js from "@eslint/js";
import globals from "globals";

export default [
  js.configs.recommended,
  ...svelte.configs["flat/recommended"],
  {
    languageOptions: {
      globals: { ...globals.browser, ...globals.node },
    },
    rules: {
      "no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
      "no-console": ["warn", { allow: ["info", "warn", "error"] }],
    },
  },
  {
    ignores: [
      "node_modules/", "dist/", "build/",
      ".svelte-kit/", ".vite/", "coverage/",
    ],
  },
];
