forked from dewank07/ElixirV3
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtsconfig.json
More file actions
26 lines (26 loc) · 1.15 KB
/
tsconfig.json
File metadata and controls
26 lines (26 loc) · 1.15 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
{
"compilerOptions": {
"target": "ES2017", // Required for top-level await
"lib": ["DOM", "DOM.Iterable", "ESNext"], // Necessary libraries
"allowJs": true, // Allow using .js files in the project
"skipLibCheck": true, // Skip type checks on node_modules
"strict": true, // Enable all strict type checking options
"noEmit": true, // Don't emit compiled files (Next.js handles this)
"esModuleInterop": true, // Enables `import fs from 'fs'` style
"module": "ESNext", // Latest module syntax
"moduleResolution": "Bundler", // Aligns with how Next.js bundles files
"resolveJsonModule": true, // Lets you import JSON as modules
"isolatedModules": true, // Needed for transpiling each file in isolation
"jsx": "preserve", // Let Next.js handle JSX transforms
"incremental": true, // Speeds up rebuilds
"baseUrl": ".", // Required for path aliases
"paths": {
"@/*": ["./*"] // Allow `@/` import aliasing
},
"plugins": [
{ "name": "next" } // Supports Next.js-specific TS features
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}