-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
36 lines (36 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
31
32
33
34
35
36
{
"compilerOptions": {
"target": "esnext", // Use ESNext to support modern JavaScript features
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, // Allow JavaScript files to be compiled
"skipLibCheck": true, // Skip type checking of declaration files
"strict": true, // Enable all strict type-checking options
"forceConsistentCasingInFileNames": true, // Enforce consistent file and directory names
"noEmit": true, // Do not emit output files (since it's a Next.js project)
"esModuleInterop": true, // Enable interoperability between CommonJS and ES modules
"module": "esnext", // Specify module code generation
"moduleResolution": "node", // Resolve modules using Node.js resolution strategy
"resolveJsonModule": true, // Allow importing JSON modules
"isolatedModules": true, // Ensure each file is treated as a separate module
"jsx": "preserve", // Preserve JSX in TypeScript output
"incremental": true, // Enable incremental compilation
"types": [
"jest",
"@testing-library/jest-dom"
],
"typeRoots": ["node_modules/@types"],
"baseUrl": ".",
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}