-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
38 lines (37 loc) · 1.41 KB
/
tsconfig.json
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
// {
// "compilerOptions": {
// "jsx": "react",
// "module": "Node16",
// "target": "ES2022",
// "lib": ["ES2022"],
// "sourceMap": true,
// "outDir": "./dist",
// "rootDir": "src",
// "strict": true /* enable all strict type-checking options */
// /* Additional Checks */
// // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// // "noUnusedParameters": true, /* Report errors on unused parameters. */
// }
// }
{
"compilerOptions": {
"sourceMap": true,
"module": "CommonJS",
"target": "ES6",
// "target": "ES6", // ECMAScript target version
// "module": "ESNext", // Use ESNext modules for better compatibility with React
"jsx": "react-jsx", // Enable JSX syntax for React (use "react" for React <17)
"strict": true, // Enable strict type checking
"esModuleInterop": true, // Allow default imports from CommonJS modules
"moduleResolution": "node", // Resolve node_modules
"outDir": "./dist", // Output directory : might use dist
"baseUrl": "./src", // Base directory for module resolution
"paths": {
"*": ["node_modules/*"]
}
},
"type": "module",
"include": ["src/**/*", "test/**/*.ts"], // Include all TypeScript and TSX files in src
"exclude": ["node_modules"]
}