From b10cec2322655fe168945e331799df8e58c45039 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Mon, 23 Mar 2026 00:32:32 +0200 Subject: [PATCH] chore: update type testing setup (#2139) * chore: update type testing setup * stricter TSConfig * deduplicate type checking --- package.json | 2 +- tstyche.config.json | 4 ---- types/tsconfig.json | 10 ++++------ 3 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 tstyche.config.json diff --git a/package.json b/package.json index d089b5792..8dbb4bc51 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "lint": "npm run lint:oxlint && npm run lint:format && npm run lint:types && npm run lint:compat", "lint:oxlint": "oxlint --max-warnings 0 .", "lint:format": "oxfmt --check .", - "lint:types": "tsc --noEmit --project types && tstyche", + "lint:types": "tstyche", "lint:compat": "eslint", "test": "npm run build && vitest run --project node --project tasks --project rspack --coverage", "test:browser": "vitest run --project browser", diff --git a/tstyche.config.json b/tstyche.config.json deleted file mode 100644 index c497ad0d4..000000000 --- a/tstyche.config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "testFileMatch": ["types/__typetests__/**/*.tst.ts"], - "tsconfig": "./types/tsconfig.json" -} diff --git a/types/tsconfig.json b/types/tsconfig.json index 181b36e34..4e8713448 100644 --- a/types/tsconfig.json +++ b/types/tsconfig.json @@ -2,16 +2,14 @@ "compilerOptions": { "module": "commonjs", "lib": ["es6"], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, + "exactOptionalPropertyTypes": true, + "noUncheckedIndexedAccess": true, + "strict": true, "noEmit": true, - "baseUrl": ".", "types": [], "paths": { - "handlebars": ["."] + "handlebars": ["../"] } } }