-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (39 loc) · 1.41 KB
/
tsconfig.json
File metadata and controls
43 lines (39 loc) · 1.41 KB
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
{
"compilerOptions": {
// Module settings
"esModuleInterop": true,
"moduleResolution": "node",
"module": "CommonJS",
"target": "ES2022",
// Output settings
"outDir": "./dist",
"rootDir": "./src",
"declaration": true, // Generate .d.ts files for better TypeScript integration
"declarationMap": true, // Generate sourcemaps for declaration files
// Type checking
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitOverride": true, // Ensure 'override' keyword is used when overriding methods
"exactOptionalPropertyTypes": true, // Stricter handling of optional properties
// Additional options
"types": ["vitest/globals", "node"],
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"removeComments": true, // Changed to true to remove comments from the compiled output
"sourceMap": true,
"resolveJsonModule": true, // Allow importing JSON files
"incremental": true, // Speed up builds by reusing information from previous compilations
"importHelpers": true, // Reduce bundle size by importing helpers from tslib
"useUnknownInCatchVariables": true, // Safer error handling with unknown type for caught errors
// Module resolution
"baseUrl": "./src",
"paths": {
"@utils/*": ["utils/*"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.test.ts"]
}