-
Notifications
You must be signed in to change notification settings - Fork 7
/
tsconfig.json
30 lines (30 loc) · 957 Bytes
/
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
{
"extends": "@tsconfig/svelte/tsconfig.json",
"compilerOptions": {
"types": ["svelte", "node"],
"experimentalDecorators": true,
"baseUrl": ".",
// "inlineSourceMap": true, // 否则svelete文件报错:[svelte-preprocess] Encountered type error
"inlineSources": true,
"module": "ESNext",
"target": "ES6",
"allowJs": true,
"noImplicitAny": true,
"moduleResolution": "node",
"importHelpers": true,
// "allowSyntheticDefaultImports": true, // markdown-it模块要加这个
"isolatedModules": true,
"strictNullChecks": true,
"lib": [
"DOM",
"ES5",
"ES6",
"ES7",
"dom.iterable" // 并重新启动项目,不然该代码报错:for (let el of blockEl.querySelectorAll("[id^=TX_]"))
// 或在for of时报错:类型“HTMLCollection”必须具有返回迭代器的 "[Symbol.iterator]()" 方法
],
},
"include": [
"**/*.ts"
]
}