-
Notifications
You must be signed in to change notification settings - Fork 3
/
tsconfig.json
54 lines (41 loc) · 1.26 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
{
"compilerOptions": {
// target latest version of ECMAScript
"target": "ES2018",
// module code generation
"module": "CommonJS",
// where to output the files
"outDir": "dist",
// strip out general comments
"removeComments": true,
// generate corresponding .d.ts files
"declaration": true,
// Search under node_modules for non-relative imports
"moduleResolution": "node",
// process & infer types from .js files
"allowJs": true,
"checkJs": true,
// import non-ES modules as default imports
"esModuleInterop": true,
// use typescript to transpile jsx to js
"jsx": "react",
// resolve non-relative module names
"baseUrl": "src",
// enforcing style and checking
"strict": true,
"allowUnreachableCode": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
// allow the use of JSON files
"resolveJsonModule": true,
// print name of files and generated files
"listEmittedFiles": true,
// add some style to errors and messages
"pretty": true
},
"include": ["src", "index.ts"],
"exclude": ["node_modules", "**/tests/**"]
}