-
Notifications
You must be signed in to change notification settings - Fork 37
/
tsconfig.json
49 lines (44 loc) · 1.65 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
{
"compilerOptions": {
// Output folders
//
// This file is meant for general Typescript configurations and
// it generates only type files. The generation of JS in CommonJS and ES Module
// is defined by two extending files.
//
// +----------------+
// | tsconfig.json |< - - - - - - Generates type definitions
// +----------------+
// ^
// |
// +-------------+--------------+
// | |
// + - - - - - - - + - - - - - - - - - - - - - -|- - - - - - - +
// | +------------------------+ +------------------------+ |
// | | tsconfig.commonjs.json | | tsconfig.esnext.json | |<- - - - - Generate Javascript flavours
// | +------------------------+ +------------------------+ |
// + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
//
"declarationDir": "./dist/types",
// Output setup
"emitDeclarationOnly": true,
"declaration": true,
"sourceMap": true,
// TypeScript and JavaScript Compatibility
"target": "ES2016",
// Module resolution
"moduleResolution": "Node",
"esModuleInterop": true,
// Type-checking
"strict": true,
"skipLibCheck": false,
"noImplicitAny": true,
"resolveJsonModule": true,
"strictNullChecks": true,
"lib": ["ESNext"],
// React specific
"jsx": "react"
},
"include": ["src/**/*", "test/jest-dom.d.ts", "react-extras.d.ts"],
"exclude": ["node_modules", "dist", "src/__tests__", "src/**/*.test.tsx"]
}