-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
30 lines (28 loc) · 1.87 KB
/
Copy pathtsconfig.json
File metadata and controls
30 lines (28 loc) · 1.87 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
{
"compilerOptions": {
"target": "es2016", // Set the target ECMAScript version
"module": "commonjs", // Use commonjs modules, typical for Node.js
"esModuleInterop": true, // Allow interoperability with CommonJS modules
"forceConsistentCasingInFileNames": true, // Ensure consistent casing in file names
"strict": true, // Enable all strict type-checking options
"skipLibCheck": true, // Skip type checking of all declaration files
// Additional recommended options:
"outDir": "./dist", // Redirect output structure to the 'dist' folder
"rootDir": "./src", // Specify the root directory of source files
"declaration": true, // Generate corresponding '.d.ts' file
"sourceMap": true, // Generate source map files for debugging
"resolveJsonModule": true, // Allow importing JSON modules
// Optional but useful:
"noUnusedLocals": true, // Report errors on unused locals
"noUnusedParameters": true, // Report errors on unused parameters
"noImplicitReturns": true, // Report error when not all code paths in function return a value
"noFallthroughCasesInSwitch": true // Report errors for fallthrough cases in switch statement
},
"include": [
"src/**/*" // Include all files in the src folder
],
"exclude": [
"node_modules", // Exclude the node_modules folder
"**/*.spec.ts" // Exclude test files
]
}