-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
20 lines (20 loc) · 1.1 KB
/
tsconfig.json
File metadata and controls
20 lines (20 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"compilerOptions": {
"target": "esnext", // Use ESNext for modern JavaScript features
"lib": ["dom", "dom.iterable", "esnext"], // Include ESNext library definitions
"allowJs": true, // Allow JavaScript files
"skipLibCheck": true, // Skip type checks on declaration files
"esModuleInterop": true, // Enable compatibility with CommonJS modules
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"strict": true, // Enable strict type-checking
"forceConsistentCasingInFileNames": true, // Enforce consistent casing
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statements
"module": "esnext", // Use ESNext modules
"moduleResolution": "node", // Resolve modules as Node.js does
"resolveJsonModule": true, // Allow importing JSON files
"isolatedModules": true, // Ensure TypeScript files are compiled independently
"noEmit": false, // Prevent emitting compiled files
"jsx": "react-jsx" // Use the new JSX transform for React
},
"include": ["src"] // Specify the files to include
}