-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
50 lines (44 loc) · 1.14 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
{
"compilerOptions": {
// Enable latest features
"lib": ["ES2022"],
"module": "ES2022",
"target": "ES2022",
"moduleDetection": "force",
"jsx": "react-jsx",
// "allowJs": true,
// Bundler mode
"moduleResolution": "node",
// "allowImportingTsExtensions": false,
// "verbatimModuleSyntax": true,
"noEmit": true,
"esModuleInterop": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,
// Input and Output
"rootDir": ".",
"outDir": "./dist",
"removeComments": true,
// Paths
"baseUrl": ".",
"paths": {
"@controllers/*": ["./src/controllers/*"],
"@models/*": ["./src/models/*"],
"@routes/*": ["./src/routes/*"],
"@services/*": ["./src/services/*"],
"@utils/*": ["./src/utils/*"],
"@constants/*": ["./src/constants/*"],
"@config/*": ["./src/config/*"]
},
// Type checking
"typeRoots": ["./node_modules/@types", "./src/@types"]
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}