-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.json
59 lines (55 loc) · 2.09 KB
/
tsconfig.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
51
52
53
54
55
56
57
58
59
{
"extends": "@zcorky/tsconfig",
"compilerOptions": {
"noUnusedLocals": false,
"noUnusedParameters": false,
// // Disabled because of https://github.com/Microsoft/TypeScript/issues/29172
// // "outDir": "dist",
// "target": "es2018", // Node.js 10
// "module": "commonjs",
// "moduleResolution": "node",
// "resolveJsonModule": true,
// "jsx": "react",
// "declaration": true,
// "sourceMap": true,
// "pretty": true,
// "newLine": "lf",
// "noEmitOnError": true,
// "skipLibCheck": true,
// "importHelpers": true,
// //
// "noImplicitAny": false,
// // "removeComments": true, // keep comments for tip
// "emitDecoratorMetadata": true,
// "experimentalDecorators": true,
// "lib": [
// "es2018",
// "DOM"
// ],
// // @Notice import default should disable first for node and front
// // 1. disable in node (cjs)
// // 2. you can enable in front (es)
// // Stackoverflow: https://stackoverflow.com/questions/56238356/understanding-esmoduleinterop-in-tsconfig-file
// //
// // "allowSyntheticDefaultImports": true, // To provide backwards compatibility, ignore typecheck, Node.js allows you to import most CommonJS packages with a default import. This flag tells TypeScript that it's okay to use import on CommonJS modules.
// // "esModuleInterop": true, // Add real defaut for cjs module, __importDefault
// // @TODO
// // "strict": true,
// // "noImplicitReturns": true,
// // "noUnusedLocals": true,
// // "noUnusedParameters": true,
// // "noFallthroughCasesInSwitch": true,
// // "noUncheckedIndexedAccess": true,
// // "noPropertyAccessFromIndexSignature": true,
// // "useDefineForClassFields": true,
// // Reference: https://github.com/njleonzhang/njleonzhang.github.io/issues/1
// "stripInternal": true, // 不为有/** @internal */标记的代码生成declaration
// "forceConsistentCasingInFileNames": true, // 是否在导入文件的时候需要保证大小写一致。
},
"exclude": [
"node_modules",
"__tests__",
"**/*.spec.ts",
"**/*.test.ts"
]
}