This repository was archived by the owner on Mar 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
61 lines (51 loc) · 1.66 KB
/
tsconfig.json
File metadata and controls
61 lines (51 loc) · 1.66 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
{
"compilerOptions": {
"target": "ESNext", // Use ES6 or higher
"module": "CommonJS", // Ensure ES module output
"moduleResolution": "node", // Standard Node.js module resolution
"esModuleInterop": true, // Allow for default imports from non-ESM modules
"outDir": "./dist", // Output directory for compiled files
"declaration": true, // Generate .d.ts files for type declarations
"sourceMap": true, // Generate source maps
"strict": true, // Enable strict type-checking
"skipLibCheck": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}
/*
SOURCE: https://www.totaltypescript.com/tsconfig-cheat-sheet
{
"compilerOptions": {
/* Base Options: *\/
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": true,
/* Strictness *\/
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
/* If transpiling with TypeScript: *\/
"module": "NodeNext",
"outDir": "dist",
"sourceMap": true,
/* AND if you're building for a library: *\/
"declaration": true,
/* AND if you're building for a library in a monorepo: *\/
"composite": true,
"declarationMap": true,
/* If NOT transpiling with TypeScript: *\/
"module": "preserve",
"noEmit": true,
/* If your code runs in the DOM: *\/
"lib": ["es2022", "dom", "dom.iterable"],
/* If your code doesn't run in the DOM: *\/
"lib": ["es2022"]
}
}
*/