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": "npm run lint:oxlint && npm run lint:format && npm run lint:types && npm run lint:compat",
|
||||||
"lint:oxlint": "oxlint --max-warnings 0 .",
|
"lint:oxlint": "oxlint --max-warnings 0 .",
|
||||||
"lint:format": "oxfmt --check .",
|
"lint:format": "oxfmt --check .",
|
||||||
"lint:types": "tsc --noEmit --project types && tstyche",
|
"lint:types": "tstyche",
|
||||||
"lint:compat": "eslint",
|
"lint:compat": "eslint",
|
||||||
"test": "npm run build && vitest run --project node --project tasks --project rspack --coverage",
|
"test": "npm run build && vitest run --project node --project tasks --project rspack --coverage",
|
||||||
"test:browser": "vitest run --project browser",
|
"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": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"lib": ["es6"],
|
"lib": ["es6"],
|
||||||
"noImplicitAny": true,
|
"exactOptionalPropertyTypes": true,
|
||||||
"noImplicitThis": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"strictNullChecks": true,
|
"strict": true,
|
||||||
"strictFunctionTypes": true,
|
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|
||||||
"baseUrl": ".",
|
|
||||||
"types": [],
|
"types": [],
|
||||||
"paths": {
|
"paths": {
|
||||||
"handlebars": ["."]
|
"handlebars": ["../"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user