This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
74 lines (68 loc) · 1.68 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"compilerOptions": {
// Base options
"target": "es2022",
"verbatimModuleSyntax": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"allowJs": true,
"checkJs": true,
"skipLibCheck": true,
// strictness
"strict": true,
"noUncheckedIndexedAccess": true,
"forceConsistentCasingInFileNames": true,
// strictness: optional to have
"preserveConstEnums": true,
"alwaysStrict": true,
"strictNullChecks": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"noFallthroughCasesInSwitch": true,
// if transpiling with TypeScript
// "moduleResolution": "NodeNext",
// "module": "NodeNext",
// "outDir": "dist",
// "sourceMap": true,
// NOT transpiling with TypeScript
"moduleResolution": "Bundler",
"module": "ESNext",
"noEmit": true,
// code runs in DOM
"lib": ["dom", "dom.iterable", "es2022"],
// doesn't run in DOM
// "lib": ["es2022"],
// building for a library
// "declaration": true,
// building for a library in a monorepo
// "composite": true,
// "declarationMap": true,
"esModuleInterop": true,
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"removeComments": true,
"allowSyntheticDefaultImports": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"~/*": ["./src/*"]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"prettier.config.cjs",
".eslintrc.cjs"
],
"exclude": ["node_modules"]
}