-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.base-node12.json
50 lines (43 loc) · 1.49 KB
/
tsconfig.base-node12.json
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
47
48
49
50
{
"extends": "@tsconfig/node12/tsconfig.json",
"compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */
/* Projects */
"incremental": true,
"composite": true,
/* Language and Environment */
// Node.js 12.9.0 or newer supports all new functions and properties introduced in ES2020
// see https://qiita.com/suin/items/32f76c9b88b8daa286c4#nodejs-129%E6%9C%AA%E6%BA%80%E3%81%AE%E5%A0%B4%E5%90%88
// see https://stackoverflow.com/a/59787575/4907315
// see https://node.green/#ES2020
"lib": ["ES2020"],
"useDefineForClassFields": true,
/* Modules */
"module": "CommonJS",
// Starting with TypeScript 4.7, we can use the `exports` field in `package.json`.
// To use it, the `moduleResolution` option must be 'node16' or 'nodenext'.
"moduleResolution": "Node16",
"types": [],
/* Emit */
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"importsNotUsedAsValues": "error",
"newLine": "LF",
/* Interop Constraints */
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
/* Type Checking */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"exactOptionalPropertyTypes": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
/* Completeness */
"skipLibCheck": false
}
}