-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtsconfig.json
43 lines (43 loc) · 1.42 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
39
40
41
42
43
{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, // Allow JavaScript files to be compiled
"skipLibCheck": true, // Skip type checking for declaration files (.d.ts)
"strict": true, // Enable strict type checking
"noEmit": true, // Don't generate any output (no .js files)
"esModuleInterop": true, // Enable compatibility with CommonJS modules
"module": "esnext", // Use ESNext module resolution
"moduleResolution": "bundler", // Use bundler-based module resolution
"resolveJsonModule": true, // Allow importing JSON modules
"isolatedModules": true, // Ensure each file is treated as a module
"jsx": "preserve", // Preserve JSX syntax
"incremental": true, // Enable incremental compilation
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./src/*"
]
},
"target": "ES2020", // Target more modern ECMAScript version
"skipDefaultLibCheck": true, // Skip type checking for default library files
"noEmitOnError": false // Allow emitting files even when there are type errors
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"build/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}