import js from "@eslint/js"; import tseslint from "typescript-eslint"; import globals from "globals"; export default tseslint.config( js.configs.recommended, ...tseslint.configs.recommended, { files: ["**/*.{ts,tsx}"], languageOptions: { parser: tseslint.parser, parserOptions: { ecmaVersion: "latest", sourceType: "module", }, globals: { ...globals.browser, ...globals.es2021, }, }, rules: { "@typescript-eslint/no-unused-vars": [ "warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", }, ], "@typescript-eslint/no-explicit-any": "warn", }, }, { ignores: ["dist/**", "node_modules/**", "*.config.js"], }, );