-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
tsconfig.json
42 lines (40 loc) · 1.14 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
{
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"module": "ES2020",
"moduleResolution": "Node",
"experimentalDecorators": true,
// rollup 打包生成 umd 包时,需要生成 sourcemap,此处的选项应该移除,下面是对应说明
// https://stackoverflow.com/questions/63128597/how-to-get-rid-of-the-rollup-plugin-typescript-rollup-sourcemap-option-must
// "sourceMap": true,
"noImplicitAny": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noEmitOnError": true,
"strict": true,
"strictNullChecks": true,
"skipLibCheck": true,
"target": "ES5",
"jsx": "react-jsx",
"jsxImportSource": "preact"
// see more from: https://preactjs.com/guide/v10/typescript
// "jsx": "preserve",
// "jsxFactory": "h",
// "jsxFragmentFactory": "Fragment",
// "lib": ["DOM", "DOM.Iterable", "ESNext"]
// "baseUrl": ".",
// "paths": {
// "@/*": ["*"],
// "@logicflow/core": ["./packages/core"]
// }
},
"exclude": [
"**/node_modules",
"**/examples",
"**/*.test.ts",
"**/*.e2e.ts",
"**/es",
"**/lib"
]
}