-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
30 lines (30 loc) · 1.25 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
{
"compilerOptions": {
"target": "ESNext", // Latest ECMAScript version
"lib": ["dom", "dom.iterable", "ESNext"], // Browser APIs and latest JS types
"allowJs": true, // Allow JavaScript files
"skipLibCheck": true, // Skip declaration file checking (faster)
"strict": true, // Enable all strict type checks
// ... other strict options (consider enabling gradually)
"noEmit": true, // Don't compile JS (type checking only)
"esModuleInterop": true, // CommonJS/ES module interop
"module": "ESNext", // Latest ECMAScript modules
"moduleResolution": "bundler", // Bundler-friendly module resolution
"resolveJsonModule": true, // Import JSON files
"isolatedModules": true, // Independent module compilation
"jsx": "preserve", // Preserve JSX syntax (React)
"incremental": true, // Incremental compilation (faster rebuilds)
"plugins": [
{
"name": "next"
}
], // Next.js plugin
"paths": {
"@/*": ["./src/*"]
}, // Path aliases
"noEmitOnError": true, // Don't emit JS on errors (optional)
"checkJs": false // Check JS files (optional)
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], // Included files
"exclude": ["node_modules"] // Excluded files
}