-
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.53 KB
/
Copy pathtsconfig.json
File metadata and controls
43 lines (38 loc) · 1.53 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
{
"include": ["src/**/*", "test/**/*"],
"compilerOptions": {
// Specify explicitly (don’t derive from source file paths):
"rootDir": ".",
"outDir": "dist",
//===== Output: JavaScript =====
"target": "ES2023",
"module": "Node16", // sets up "moduleResolution"
// Emptily imported modules must exist
"noUncheckedSideEffectImports": true,
"sourceMap": true, // .js.map files
//========== Compiling TS with tools other than tsc ==========
//----- Helps with emitting .js -----
// Enforces keyword `type` for type imports etc.
"verbatimModuleSyntax": true, // implies "isolatedModules"
// Forbids non-JavaScript language constructs such as
// JSX, enums, constructor parameter properties and namespaces.
// Important for type stripping.
// "erasableSyntaxOnly": true, // TS 5.8+
//----- Helps with emitting .d.ts -----
// - Forbids inferred return types of exported functions etc.
// - Only allowed if `declaration` or `composite` are true
"isolatedDeclarations": true,
//===== Type checking =====
"strict": true, // activates several useful options
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
//===== Output: declarations =====
"declaration": true, // .d.ts files
// “Go to definition” jumps to TS source etc.:
"declarationMap": true, // .d.ts.map files
}
}