// Flat config — required since ESLint 9. See https://eslint.org/docs/latest/use/configure/configuration-files import js from "@eslint/js"; import tseslint from "typescript-eslint"; import globals from "globals"; export default [ { ignores: ["**/dist/**", "**/node_modules/**", "**/*.d.ts"] }, js.configs.recommended, ...tseslint.configs.recommended, { files: ["**/*.{ts,tsx}"], languageOptions: { ecmaVersion: 2022, sourceType: "module", globals: { ...globals.browser, ...globals.node }, }, rules: { "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], "@typescript-eslint/no-explicit-any": "warn", }, }, ];