This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
tsconfig.json
67 lines (66 loc) · 2.01 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
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"outDir": "out",
"lib": ["es6"],
"sourceMap": true,
"resolveJsonModule": true,
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
},
// Note: To transform paths for both the output .js and .d.ts files, you need both of the below entries
"plugins": [
// Transform paths in output .js files
{
"transform": "typescript-transform-paths",
"exclude": ["**/node_modules/**"]
},
// Transform paths in output .d.ts files (Include this line if you output declarations files)
{
"transform": "typescript-transform-paths",
"afterDeclarations": true,
"exclude": ["**/node_modules/**"]
}
],
"rootDir": ".",
"strict": true,
/* Additional Checks */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
"esModuleInterop": true,
"noUnusedLocals": true,
"noImplicitThis": true,
"noImplicitReturns": true,
"strictNullChecks": true,
"noUnusedParameters": true,
"allowJs": true,
"checkJs": false,
"skipLibCheck": true,
"typeRoots": ["./node_modules/@types", "./node_modules/@machinomy", "./src/debugger/types"]
},
"include": [
".eslintrc.js",
"src/**/*.js",
"src/**/*.ts",
"src/**/*.json",
"test/**/*.js",
"test/**/*.ts",
"test/**/*.json"
],
"exclude": ["node_modules", ".vscode-test", "drizzleUI", "ui-test"],
// In order for `ts-node`[1] to load `.d.ts` definitions,
// we need to explicitly enable the `files`[2] option.
//
// We use `.d.ts` definitions to declare variables outside `src/`,
// for instance `IS_BUILD_TIME` from `webpack.common.js`.
//
// Since we invoke `ts-node` from `.mocharc.js`,
// we need to enable this option here.
//
// [1] https://typestrong.org/ts-node/docs/configuration/#via-tsconfigjson-recommended
// [2] https://typestrong.org/ts-node/docs/options#files
"ts-node": {
"files": true
}
}