feat: typechecking tests

This commit is contained in:
2026-06-27 00:37:01 +02:00
parent a9925ac2ec
commit 408806d17b
28 changed files with 2091 additions and 1456 deletions
+18 -1
View File
@@ -3,7 +3,7 @@ import tseslint from "typescript-eslint";
import { defineConfig, globalIgnores } from "eslint/config";
export default defineConfig([
globalIgnores(["dist", "tests/generated"]),
globalIgnores(["dist", "tests/generated", "coverage"]),
{
files: ["**/*.{ts,tsx}"],
extends: [
@@ -53,4 +53,21 @@ export default defineConfig([
},
},
},
{
ignores: ["tests"],
extends: [tseslint.configs.base],
rules: {
"@typescript-eslint/no-restricted-imports": [
"error",
{
paths: [
{
name: "vitest",
message: "Use import.meta.vitest instead",
},
],
},
],
},
},
]);