-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtsconfig.json
More file actions
71 lines (57 loc) · 1.92 KB
/
Copy pathtsconfig.json
File metadata and controls
71 lines (57 loc) · 1.92 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"compilerOptions": {
// Incremental compilation for faster builds
"incremental": true,
"tsBuildInfoFile": ".cache/tsc/.tsbuildinfo",
// Base directory for resolving non-relative module names
"baseUrl": ".",
// Generate inline source maps for debugging
"inlineSourceMap": true,
"inlineSources": true,
// Use modern module system
"module": "ESNext",
// Target ES6 for good compatibility
"target": "ES6",
// Allow JavaScript files to be compiled
"allowJs": true,
// Enforce strict type checking
"noImplicitAny": true,
// Module resolution strategy
"moduleResolution": "node",
"resolveJsonModule": true,
// Import helpers from 'tslib'
"importHelpers": true,
// Better compatibility with bundlers
"isolatedModules": true,
// Enable strict null checks
"strictNullChecks": true,
// JSX Support
"jsx": "react",
"esModuleInterop": true,
// Explicitly include Node.js global type definitions to silence IDE errors
"types": ["node"],
// Required libraries for compilation
"lib": [
"DOM", // DOM APIs
"ES5", // ES5 features
"ES6", // ES6/ES2015 features
"ES7", // ES7/ES2016 features
"ES2015", // Additional ES2015 features
"ES2021", // Modern JavaScript features
"DOM.Iterable" // For iterables like NodeList
],
"typeRoots": [
"./node_modules/@types",
"./types"
]
},
// Files to include in compilation
"include": [
"**/*.ts", // All TypeScript files
"**/*.tsx" // All TypeScript JSX files
],
"exclude": [
"tests/**/*",
"**/*.test.*"
]
}