-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (38 loc) · 1.34 KB
/
Copy pathtsconfig.json
File metadata and controls
43 lines (38 loc) · 1.34 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
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"lib": ["ES2022"],
"types": ["node"],
"outDir": "dist",
// rootDir is the repo root (not src) so `tsc --noEmit` can type-check the
// shared test fixtures under test/ alongside the src they import. The build
// (tsup) bundles from explicit src entries and is unaffected by rootDir.
"rootDir": ".",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"skipLibCheck": true,
"ignoreDeprecations": "6.0"
},
// Test specs (src/**/*.test.ts) and the shared fixtures (test/**) are intentionally
// INCLUDED so `tsc --noEmit` (the typecheck script + CI) and the editor type-check
// them. The build (tsup) bundles from explicit src entries and is unaffected.
"include": ["src/**/*", "test/**/*"],
"exclude": ["node_modules", "dist"]
}