-
Notifications
You must be signed in to change notification settings - Fork 164
/
tsconfig.json
46 lines (37 loc) · 1.04 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
/*
TypeScript compiler is NOT using for build!
so here's only type-checking options
use: `yarn tscheck` or `yarn tscheck:watch`
you can set up eslint in vs-code to see live time errors without `tscheck`
*/
{
"compilerOptions": {
"target": "ESNext",
"module": "CommonJS",
"lib": ["ESNext", "ES6", "DOM", "DOM.Iterable"],
"jsx": "react",
"noEmit": true,
"sourceMap": true,
"resolveJsonModule": true,
// strict options
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
// js
"allowJs": true,
"checkJs": false,
"allowSyntheticDefaultImports": true,
// module resolution options
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
// paths:
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["scripts", "webpack", "dist", "node_modules", "**/*.spec.ts"],
// ? .jsx seems useless
"include": ["src/*.d.ts", "src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
}