-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
28 lines (27 loc) · 1.61 KB
/
Copy pathtsconfig.json
File metadata and controls
28 lines (27 loc) · 1.61 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
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
// Add these recommended options
"strict": true, // Enable all strict type checking options
"esModuleInterop": true, // Enables emit interoperability between CommonJS and ES Modules
"skipLibCheck": true, // Skip type checking of declaration files
"forceConsistentCasingInFileNames": true, // Ensure consistent casing in file names
"moduleResolution": "node", // Use Node.js style module resolution
"outDir": "./build", // Output directory for compiled files
"rootDir": "./src", // Source files directory
"sourceMap": true, // Generate source maps for debugging
"removeComments": true, // Remove comments in output files
"noImplicitAny": true, // Raise error on expressions and declarations with implied 'any' type
"declaration": true, // Generate corresponding .d.ts files
"emitDeclarationOnly": true, // Ensure that .d.ts files are created by tsc, but not .js files
"isolatedModules": true // Ensure that Babel can safely transpile files in the TypeScript project
},
"include": [
"src/**/*" // Include all files in src directory
],
"exclude": [
"node_modules", // Exclude node_modules
"**/*.test.ts" // Exclude test files
]
}