Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
45 lines (45 loc) · 1.48 KB
/
Copy pathtsconfig.json
File metadata and controls
45 lines (45 loc) · 1.48 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
{
"compilerOptions": {
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
// The three options below are what let Node run a `.ts` file in `scripts/` or `lib/` directly,
// with its own type stripping (Node 22.18+) and no build step. Node strips types and compiles
// nothing else, so `erasableSyntaxOnly` rejects enums, namespaces and parameter properties
// here rather than at runtime; `verbatimModuleSyntax` makes a type-only import say `import
// type`, because Node would otherwise keep the import and throw on a missing runtime export;
// and `allowImportingTsExtensions` permits the `./x.ts` specifiers Node requires (legal only
// with `noEmit`, which is set). Turbopack resolves the same specifiers in app code.
"allowImportingTsExtensions": true,
"erasableSyntaxOnly": true,
"verbatimModuleSyntax": true,
"jsx": "react-jsx",
"incremental": true,
"paths": {
"@/*": ["./*"],
"collections/*": ["./.source/*"]
},
"plugins": [
{
"name": "next"
}
],
"allowJs": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules"]
}