import { defineConfig, globalIgnores } from "eslint/config"; import js from "@eslint/js"; import ts from "@typescript-eslint/eslint-plugin"; import tsParser from "@typescript-eslint/parser"; const eslintConfig = defineConfig([ js.configs.recommended, { files: ["**/*.ts", "**/*.tsx"], languageOptions: { parser: tsParser, parserOptions: { ecmaVersion: "latest", sourceType: "module", }, }, plugins: { "@typescript-eslint": ts, }, rules: { ...ts.configs.recommended.rules, "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], "@typescript-eslint/no-explicit-any": "warn", }, }, globalIgnores([ "dist/**", "dist-electron/**", "node_modules/**", "server-bundle/**", "release/**", "src/routeTree.gen.ts", ]), ]); export default eslintConfig;