This repository has been archived by the owner on Nov 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tsconfig.json
62 lines (62 loc) · 1.53 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"compilerOptions": {
"baseUrl": "./",
// enables project relative paths config
"paths": {
// define paths mappings
"@src/*": [
"src/*"
]
// will enable -> import { ... } from '@src/components'
// in webpack you need to add -> resolve: { alias: { '@src': PATH_TO_SRC } }
},
"outDir": "dist/",
// target for compiled files
"allowSyntheticDefaultImports": true,
// no errors with commonjs modules interop
// "esModuleInterop": true,
"allowJs": true,
// include js files
"checkJs": true,
// typecheck js files
"declaration": false,
// don't emit declarations
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
// importing helper functions from tslib
"noEmitHelpers": true,
// disable emitting inline helper functions
"jsx": "react",
// process JSX
"lib": [
"dom",
"es2016",
"es2017.object"
],
"target": "es5",
// "es2015" for ES6+ engines
"module": "commonjs",
// "es2015" for tree-shaking
"moduleResolution": "node",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"strict": true,
"pretty": true,
"removeComments": true,
"sourceMap": true
},
"include": [
"src/**/*"
// to change
],
"exclude": [
"node_modules",
"src/**/*.spec.*"
]
}