-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathtsconfig.json
More file actions
53 lines (45 loc) · 1.37 KB
/
tsconfig.json
File metadata and controls
53 lines (45 loc) · 1.37 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
44
45
46
47
48
49
50
51
52
53
{
"compilerOptions": {
// Target modern environments (Node.js 14+, modern browsers)
"target": "ES2020",
"module": "ESNext",
"lib": ["ES2020", "DOM"],
// Types for global APIs
"types": ["vitest/globals", "node"],
// Module resolution
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
// Source maps for debugging
"sourceMap": true,
"declarationMap": true,
// Generate declaration files for library consumers
"declaration": true,
"declarationDir": "./dist/types",
// Output configuration
"rootDir": ".",
"outDir": "./dist",
// Strict type checking for quality
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": true,
// Additional checks
"skipLibCheck": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false,
// Import helpers from tslib to reduce bundle size
"importHelpers": false,
// Emit
"removeComments": false,
"preserveConstEnums": true,
"newLine": "lf",
"jsx": "react"
},
"include": ["src/**/*", "tests/**/*", "scripts/**/*", "types/**/*", "vitest.config.ts"],
"exclude": ["node_modules", "dist", "lib"]
}