-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
49 lines (42 loc) · 1.22 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
{
// https://www.typescriptlang.org/tsconfig/
"compilerOptions": {
/* Basic Options */
"target": "ES2017",
"module": "CommonJS",
"removeComments": true,
"typeRoots": ["./node_modules/@types"],
"types": ["node"],
/* Compatibility */
"resolveJsonModule": true,
"esModuleInterop": true,
"allowJs": true,
"checkJs": false,
/* Strict Type-Checking Options */
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,
/* Module Resolution Options */
"baseUrl": ".",
"paths": {
/* Support absolute imports with a leading '/' */
"/*": ["*"]
},
"moduleResolution": "Node",
// Use esbuild for building
"noEmit": true, // Write no JS files
"incremental": false, // Write no .tsbuildinfo file
"outDir": "build/tsc" // (just in case)
},
"include": ["src", "tests", "types", "vitest.config.ts", "esbuild.mjs"],
"exclude": ["node_modules", "build"],
// make sure ts-node understands the paths config above
"ts-node": {
"require": ["tsconfig-paths/register"]
}
}