-
Notifications
You must be signed in to change notification settings - Fork 57
/
tsconfig.json
39 lines (39 loc) · 1.38 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
{
"compilerOptions": {
"noImplicitAny": true, //raise error on any type
"allowSyntheticDefaultImports": true, //allow default imports from modules with no default export
"sourceMap": true, //generate .map files
"target": "es6", //target es6
"jsx": "react", //use react
"types": [
"react",
"node"
], //use react and node types
"module": "esnext", //use esnext modules
"moduleResolution": "node", //use node module resolution strategy node
"experimentalDecorators": true, //allow experimental decorators for es7
"declaration": false, //don't generate declaration '.d.ts' files
"removeComments": true, //remove comments from build
"noImplicitReturns": true, //raise error on implicit returns
"noUnusedLocals": true, //raise error on unused locals
"noUnusedParameters": false, //raise no error on unused parameters
"strict": true, //enable all strict type-checking options
"outDir": "dist", //output directory
"baseUrl": "src", //base url for imports
"paths": {
"test/*": [
"../test/*"
]
},
"typeRoots": [
"node_modules/@types" //use node_modules/@types for type definitions
],
"strictNullChecks": true, //enable strict null checks
"resolveJsonModule": true //allow to import JSON files directly
},
"exclude": [
"**/node_modules/*",
"babel.config.cjs",
"dist"
]
}