-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
32 lines (32 loc) · 1.12 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
{
"compilerOptions": {
// build settings
"esModuleInterop": true,
"sourceMap": true,
"removeComments": true,
"resolveJsonModule": true,
// type check settings
"strict": true,
"skipLibCheck": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"module": "esnext",
"target": "es2021",
"moduleResolution": "bundler",
"lib": ["dom", "dom.iterable", "esnext"],
"noEmit": true,
"isolatedModules": true,
"jsx": "preserve",
// Next.js doesn't support project references, so composite is not useful, and enabling `composite`, won't allow us to disable `declaration`
"composite": false,
"incremental": true,
// Since noEmit is enabled, these two options won't affect anything, but they help with "likely not portable" errors in VS Code.
// https://github.com/microsoft/TypeScript/issues/42873#issuecomment-1766987305
"declaration": false,
"declarationMap": false,
// enforced by Next.js
"allowJs": true,
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "src/pages/index.msx"],
"exclude": ["node_modules"],
}