eslint.config.mjs
1 import js from "@eslint/js"; 2 import tseslint from "typescript-eslint"; 3 4 export default tseslint.config( 5 { 6 ignores: ["node_modules/**", "build/**", "**/*.d.ts"], 7 }, 8 js.configs.recommended, 9 ...tseslint.configs.recommended, 10 { 11 files: ["**/*.ts"], 12 languageOptions: { 13 parserOptions: { 14 // Keep tests lint lightweight: do not require type-aware linting. 15 // This avoids needing to include tool configs (e.g. vitest.config.ts) in tsconfig. 16 }, 17 globals: { 18 console: "readonly", 19 process: "readonly", 20 setTimeout: "readonly", 21 clearTimeout: "readonly", 22 }, 23 }, 24 rules: { 25 "@typescript-eslint/no-explicit-any": "off", 26 "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], 27 }, 28 }, 29 ); 30