-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
40 lines (40 loc) · 1.7 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
{
// These options make up the bulk of TypeScript’s
// configuration and it covers how the language should work.
"compilerOptions": {
// Modern browsers support all ES6 features, so ES6 is a good choice.
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
// A best practice is to use the forceConsistentCasingInFileNames option in your tsconfig.json file.
// TypeScript will issue an error if you try to include a file by using a different casing from the casing of the file name on the disk.
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "commonjs",
// You can read more about classic vs node module resolution in the TypeScript docs (https://www.typescriptlang.org/docs/handbook/module-resolution.html#module-resolution-strategies).
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"baseUrl": "src",
"sourceMap": true,
"paths": {
"assets": ["src/assets/*"],
"modules": ["src/modules/*"],
"shared": ["src/shared/*"],
"components": ["src/components/*"],
"reducers": ["src/reducers/*"],
"pages": ["src/pages/*"],
"actions": ["src/actions/*"],
"services": ["src/services/*"],
"data": ["src/data/*"]
}
},
"include": ["src"],
"exclude": ["node_modules/", "build", "src/**/*.spec.ts"]
}