-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
63 lines (63 loc) · 1.75 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
{
"exclude": [
"*.js",
"model/*.js",
"**/*.js",
"node_modules",
"node_modules/*",
// No idea why, but this config causes tsc to think diagrammer_parser is a target and complains about overwriting it (even if it is just imported, not generated, not even a typescript file)
"build/diagrammer_parser.js",
"diagrammer_parser.js",
"**/diagrammer_parser.js",
"build/diagrammer_lexer.js",
"/home/ede/diagrammer/build/diagrammer_lexer.js",
"build/**",
"**/build/**",
],
"typeAcquisition": {
"enable": true,
"include": [
"model",
"node",
"vscode",
"jest",
"d3",
"jquery",
"gojs",
"viz.js",
"jest-puppeteer",
"puppeteer"
]
},
"compilerOptions": {
"target": "es2017",
"module": "ES6",
"sourceMap": true,
"baseUrl": ".",
"paths": {
"https://cdn.jsdelivr.net/npm/d3@7/+esm": [
"./node_modules/@types/d3"
],
"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js": [
"./node_modules/@types/jquery"
],
"@generators/*": [
"generators/*"
]
},
"allowJs": true,
"removeComments": true,
// not even this AND exclude PREVENT tsc going to node_modules
// completely removing node_modules works, transpiles beautifully still! WTF?
//"noImplicitAny": false,
// tsc is "TOTALLY" nuts,i've echo > support.ts, + this config, tsc runs thru node_modules :)
// Disabling lib check helps (or if puppeteer, jest, babel type errors get fixed)
"skipLibCheck": true,
// Be as strict as possible
"noImplicitAny": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictNullChecks": true
}
}