Skip to content

Commit b10cec2

Browse files
authored
chore: update type testing setup (#2139)
* chore: update type testing setup * stricter TSConfig * deduplicate type checking
1 parent 800c3db commit b10cec2

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"lint": "npm run lint:oxlint && npm run lint:format && npm run lint:types && npm run lint:compat",
4343
"lint:oxlint": "oxlint --max-warnings 0 .",
4444
"lint:format": "oxfmt --check .",
45-
"lint:types": "tsc --noEmit --project types && tstyche",
45+
"lint:types": "tstyche",
4646
"lint:compat": "eslint",
4747
"test": "npm run build && vitest run --project node --project tasks --project rspack --coverage",
4848
"test:browser": "vitest run --project browser",

tstyche.config.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

types/tsconfig.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"lib": ["es6"],
5-
"noImplicitAny": true,
6-
"noImplicitThis": true,
7-
"strictNullChecks": true,
8-
"strictFunctionTypes": true,
5+
"exactOptionalPropertyTypes": true,
6+
"noUncheckedIndexedAccess": true,
7+
"strict": true,
98
"noEmit": true,
109

11-
"baseUrl": ".",
1210
"types": [],
1311
"paths": {
14-
"handlebars": ["."]
12+
"handlebars": ["../"]
1513
}
1614
}
1715
}

0 commit comments

Comments
 (0)