-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
37 lines (36 loc) · 1.6 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
{
"compilerOptions": {
"declaration": true,
"outDir": "./lib", // target for compiled files
"module": "es2020",
"target": "es2015",
"strict": true,
"baseUrl": "./", // relative paths base
// "paths": {
// "@src/*": ["src/*"], // will enable import aliases -> import { ... } from '@src/components'
// //WARNING: Require to add this to your webpack config -> resolve: { alias: { '@src': PATH_TO_SRC } }
// "redux": ["typings/redux"], // override library types with your alternative type-definitions in typings folder
// "redux-thunk": ["typings/redux-thunk"] // override library types with your alternative type-definitions in typings folder
// },
"allowSyntheticDefaultImports": true, // no errors with commonjs modules interop
"esModuleInterop": true, // enable to do "import React ..." instead of "import * as React ..."
"allowJs": true, // include js files
"checkJs": false, // typecheck js files
"forceConsistentCasingInFileNames": true,
"importHelpers": true, // importing transpilation helpers from tslib
"noEmitHelpers": true, // disable inline transpilation helpers in each file
"jsx": "react", // preserving JSX
"lib": ["dom", "es2017"], // you will need to include polyfills for es2017 manually
"skipLibCheck": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"pretty": true,
"removeComments": true,
"sourceMap": true
},
"include": ["./src"],
"exclude": ["node_modules", "**/__tests__/*"]
}