import globals from "globals";
import pluginJs from "@eslint/js";

/** @type {import("eslint").Linter.Config[]} */
export default [
  {
    ignores: ["client/**", "_reference/**", "firebase/**", "node_modules/**", "dist/**", "build/**", "dev-dist/**"]
  },
  { files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
  { files: ["**/*.test.js"], languageOptions: { sourceType: "module" } },

  { languageOptions: { globals: globals.node } },
  pluginJs.configs.recommended
];
