-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
92 lines (92 loc) · 2.19 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"compilerOptions": {
// Target latest version of ECMAScript
"target": "es2017",
// Search under node_modules for non-relative imports
"moduleResolution": "node",
// Process & infer types from .js files
"allowJs": true,
// Don't emit; allow Babel to transform files
"noEmit": true,
// Enable strictest settings like strictNullChecks & noImplicitAny
"strict": true,
// Import non-default exports with import
"esModuleInterop": true,
// Disallow features that require cross-file information for emit
"isolatedModules": true,
// Import JSON files
"resolveJsonModule": true,
// Use JSX
"jsx": "preserve",
// Ensure each file can be safely transpiled
"skipLibCheck": true,
// Enables emit interoperability between CommonJS and ES Modules
"forceConsistentCasingInFileNames": true,
// Enable incremental compilation
"incremental": true,
// Module system to use (required for Next.js)
"module": "esnext",
// Enable all strict type checking options
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": true,
// Additional Checks
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
// Path aliases
"baseUrl": ".",
"paths": {
"@/*": [
"./*"
],
"@/components/*": [
"components/*"
],
"@/lib/*": [
"lib/*"
],
"@/styles/*": [
"styles/*"
],
"@/utils/*": [
"utils/*"
],
"@/types/*": [
"types/*"
]
},
// Library files to reference
"lib": [
"dom",
"dom.iterable",
"esnext"
],
// Enable experimental decorators
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"plugins": [
{
"name": "next"
}
]
},
"include": [
"**/*.js",
"**/*.jsx",
"**/*.ts",
"**/*.tsx",
"next-env.d.ts",
".next/types/**/*.ts"
],
"exclude": [
"node_modules",
".next",
"out"
]
}