-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.json
39 lines (39 loc) · 1.84 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
{
"compilerOptions": {
"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
// },
"outDir": "dist/", // target for compiled files
"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
"declaration": false, // don't emit declarations
"emitDecoratorMetadata": true, // include only if using decorators
"experimentalDecorators": true, // include only if using decorators
"forceConsistentCasingInFileNames": true,
"importHelpers": true, // importing transpilation helpers from tslib
"noEmitHelpers": true, // disable inline transpilation helpers in each file
"jsx": "preserve", // preserving JSX
"lib": ["dom", "es2017"], // you will need to include polyfills for es2017 manually
"skipLibCheck": true,
"types": ["jest"], // which global types to use
"target": "es5", // "es2015" for ES6+ engines
"module": "esnext", // "es2015" for tree-shaking
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"noEmitOnError": false,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"strict": true,
"pretty": true,
"removeComments": true,
"sourceMap": true
}
}