-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtsconfig.json
More file actions
50 lines (50 loc) · 1.54 KB
/
Copy pathtsconfig.json
File metadata and controls
50 lines (50 loc) · 1.54 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"compilerOptions": {
// ES2017 is the Next.js default and matches what the app actually ships:
// Next transpiles for its own browserslist targets regardless of this, so
// "es5" only ever constrained the type checker. It is also deprecated and
// stops working in TypeScript 7.0.
//
// The practical effect is that iterator spread (`[...map.values()]`,
// `[...str.matchAll()]`) now typechecks instead of demanding
// `--downlevelIteration` or an Array.from rewrite.
"target": "es2017",
"lib": ["dom", "dom.iterable", "esnext"],
"types": ["jest", "node"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
// `baseUrl` is deprecated in TS 7.0 and should eventually go, but it is
// load-bearing today: ~40 files import via bare specifiers ("lib/prisma"
// rather than "@/lib/prisma") and resolve only through it. Removing it is a
// mechanical import rewrite across those files — worth doing, but not on a
// branch about org chat surfaces.
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
}
},
"include": [
"next-env.d.ts",
"types/**/*.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"tests/**/*.ts"
],
"exclude": ["node_modules"]
}