-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
25 lines (25 loc) · 1.01 KB
/
Copy pathtsconfig.json
File metadata and controls
25 lines (25 loc) · 1.01 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
// tsconfig.json
{
"compilerOptions": {
"target": "ES2020", // Modern target, includes features like padStart, good for Promise etc.
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true, // Keep this true for now as we migrate file by file
"checkJs": false, // We'll rely on TS for .ts files
"outDir": "./dist/js", // Output JS will go here
"rootDir": "./js", // Source TS/JS files are here
"moduleResolution": "node", // Or "bundler" for newer setups
"sourceMap": true,
"noImplicitAny": true, // Redundant with strict:true but good to be explicit
"strictNullChecks": true // Redundant with strict:true
},
"include": [
"js/**/*.ts", // Only compile .ts files initially, then add .js if needed
"js/**/*.js" // Keep this if you want to incrementally convert and still type-check JS
],
"exclude": ["node_modules", "dist"]
}