-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtsconfig.json
More file actions
73 lines (51 loc) · 1.86 KB
/
Copy pathtsconfig.json
File metadata and controls
73 lines (51 loc) · 1.86 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
72
73
{
// TypeScript compiler options
"compilerOptions": {
// Specify ECMAScript target version
"target": "ES2020",
// Specify module code generation
"module": "ESNext",
// List of library files to be included in the compilation
"lib": ["ES2020"],
// Specify module resolution strategy
"moduleResolution": "bundler",
// Include Node.js built-in module types
"types": ["node"],
// Specify the root directory of input files
"rootDir": ".",
// Redirect output structure to the directory
"outDir": "dist",
// Enable all strict type checking options
"strict": true,
// Enable strict null checks
"strictNullChecks": true,
// Enable strict checking of function types
"strictFunctionTypes": true,
// Enable strict 'bind', 'call', and 'apply' methods on functions
"strictBindCallApply": true,
// Enable strict checking of property initialization in classes
"strictPropertyInitialization": true,
// Raise error on 'this' expressions with an implied 'any' type
"noImplicitThis": true,
// Parse in strict mode and emit "use strict" for each source file
"alwaysStrict": true,
// Enables emit interoperability between CommonJS and ES Modules
"esModuleInterop": true,
// Generate .d.ts declaration files
"declaration": true,
// Create sourcemaps for d.ts files
"declarationMap": true,
// Generate corresponding .map file
"sourceMap": true,
// Skip type checking of declaration files
"skipLibCheck": true,
// Ensure consistent casing in file names
"forceConsistentCasingInFileNames": true,
// Allow importing JSON modules
"resolveJsonModule": true
},
// Specify files to include in compilation
"include": ["src/**/*"],
// Specify files to exclude from compilation
"exclude": ["node_modules", "dist", "**/*.test.ts"]
}