-
Notifications
You must be signed in to change notification settings - Fork 361
Expand file tree
/
Copy pathtsconfig.json
More file actions
46 lines (46 loc) · 1.62 KB
/
Copy pathtsconfig.json
File metadata and controls
46 lines (46 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
// Typechecks the test suites (`pnpm typecheck:tests`). The vitest runs
// compile through esbuild, which strips types without checking them, so
// without this a type error in a test file is invisible. Also the config
// eslint's type-aware rules run against (see eslint.config.js).
"extends": "../tsconfig.base.json",
"compilerOptions": {
"target": "ES2022",
"module": "node16",
"moduleResolution": "node16",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"allowJs": true,
"checkJs": false,
"declaration": false,
"declarationMap": false,
"sourceMap": true,
"removeComments": false,
"strict": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": false,
"lib": ["ES2022", "DOM"],
"types": ["node", "vitest/globals"],
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
// Matches the root build config; the base config's `true` would require
// tslib, which is not a dependency.
"importHelpers": false,
"noEmit": true,
"rootDir": "../",
"paths": {
"@/*": ["../src/*"]
},
// `../node_modules` is required for the `vitest/globals` entry above to
// resolve: it lives at node_modules/vitest/globals.d.ts, not under
// @types. Without it tsc fails with TS2688 and checks nothing at all.
"typeRoots": ["../types", "../node_modules/@types", "../node_modules"]
},
"include": ["**/*.ts", "**/*.js"],
"exclude": ["out"]
}