chore: update type testing setup (#2139)
* chore: update type testing setup * stricter TSConfig * deduplicate type checking
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"testFileMatch": ["types/__typetests__/**/*.tst.ts"],
|
||||
"tsconfig": "./types/tsconfig.json"
|
||||
}
|
||||
+4
-6
@@ -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": ["../"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user