-
Notifications
You must be signed in to change notification settings - Fork 16
/
tsconfig.base.json
79 lines (77 loc) · 2.33 KB
/
tsconfig.base.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
68
69
70
71
72
73
74
75
76
77
78
79
{
"compilerOptions": {
// general
//"sourceMap": true,
//"watch": true,
//"noEmit": true,
"forceConsistentCasingInFileNames": true, // creates duplicates in import-helper plugins otherwise
// compilation
//"target": "ESNext",
"target": "ES2018",
"lib": [
"es6",
"es5",
"dom"
],
"jsx": "react",
"noImplicitAny": false,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
//"esModuleInterop": true, // enable this within packages that aren't using webpack for compilation
"useDefineForClassFields": true, // needed for mobx @observable
// strictness settings
//"strict": true, // enables all of the below (other than noImplicitReturns)
//"noImplicitAny": true,
//"noImplicitThis": true,
//"noImplicitReturns": true,
"alwaysStrict": true,
//"strictBindCallApply": true,
"strictNullChecks": true,
//"strictFunctionTypes": true,
//"strictPropertyInitialization": true,
// modules/paths
"module": "ESNext",
"moduleResolution": "node",
"composite": true,
"rootDir": ".",
//"rootDir": "../..", // go from "@V/DebateMap/Main" to "@V", so above modules
// paths are relative to "baseUrl" (ie. ./Packages/XXX/Source)
// commented these, since it seems like they aren't needed anymore (now that I'm using "nm" structure in web-vcore, and/or using yalc for symlinks)
"paths": {
"pg": ["../../../node_modules/pg"],
"postgraphile": ["../../../node_modules/postgraphile"],
"graphile-utils": ["../../../node_modules/graphile-utils"],
// from web-vcore
// ==========
"react": [
"../../../node_modules/web-vcore/node_modules/react",
"../../../node_modules/react",
],
// project-specific
// ==========
"mobx-graphlink": [
"../../../node_modules/web-vcore/node_modules/mobx-graphlink",
"../../../node_modules/mobx-graphlink",
],
"mobx-graphlink/*": [
"../../../node_modules/web-vcore/node_modules/mobx-graphlink/*",
"../../../node_modules/mobx-graphlink/*",
],
},
},
"include": [
// these are relative to this file's folder (repo root)
//"Typings/**/*.d.ts",
//"Packages/client/Source/**/*.ts",
//"Packages/client/Source/**/*.tsx",
//"Packages/js-common/Source/**/*.ts",
//"Packages/js-common/Source/**/*.tsx",
//"./Source/**/*.ts",
//"./Source/**/*.tsx",
],
/*"exclude": [
"Build",
"Tests",
"node_modules",
],*/
}