-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
42 lines (42 loc) · 1.52 KB
/
tsconfig.json
File metadata and controls
42 lines (42 loc) · 1.52 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
{
"compileOnSave": true,
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
// https://node.green/#ES2024
"target": "ES2024",
"module": "NodeNext",
"moduleResolution": "NodeNext",
// Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility
// and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
// Convenient for import assert from 'assert'
"esModuleInterop": true,
// Allow javascript files to be compiled.
// Egg compile to in place, will throw can not overwrite js file
"allowJs": false,
"pretty": true,
"noEmitOnError": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
// Ensure non-undefined class properties are initialized in the constructor.
// When use DI, properties will be implicitly init
"strictPropertyInitialization": false,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"inlineSourceMap": true,
"declaration": true,
"resolveJsonModule": true,
// Enables experimental support for ES7 decorators.
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"useUnknownInCatchVariables": true,
"incremental": false,
// https://nodejs.org/en/learn/typescript/publishing-a-ts-package#treat-types-like-a-test
"erasableSyntaxOnly": true,
"verbatimModuleSyntax": true,
"rewriteRelativeImportExtensions": true
}
}