-
Notifications
You must be signed in to change notification settings - Fork 7
/
tsconfig.json
45 lines (38 loc) · 1.08 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
{
"compilerOptions": {
"outDir": "dist",
"target": "esnext",
"module": "ESNext",
"moduleResolution": "Node",
"lib": ["es2020", "dom", "dom.iterable"],
"typeRoots": ["node_modules/@types"],
// strictness
"strict": true,
"alwaysStrict": true,
"strictFunctionTypes": true,
"allowJs": false,
// no need for checking libs
"skipLibCheck": true,
"skipDefaultLibCheck": true,
// important for Linux
"forceConsistentCasingInFileNames": true,
// linting
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
// modules
"resolveJsonModule": false, // causes problems by hoisting json files, and src to the root of the dist folder
"esModuleInterop": true,
"verbatimModuleSyntax": true,
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
// source maps & type maps
"declaration": true,
"sourceMap": true,
// cache build outputs
"incremental": true
}
}