-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.shared.all.jsonc
130 lines (99 loc) · 5.45 KB
/
tsconfig.shared.all.jsonc
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// Compiler options for all projects.
{
"include": ["${configDir}/src", "${configDir}/types"],
"compilerOptions": {
// -----------------------------------------------------------------
// [Type checking](https://www.typescriptlang.org/tsconfig/#Type_Checking_6248)
// -----------------------------------------------------------------
// https://www.typescriptlang.org/tsconfig/#allowUnreachableCode
"allowUnreachableCode": false,
// https://www.typescriptlang.org/tsconfig/#allowUnusedLabels
"allowUnusedLabels": false,
// https://www.typescriptlang.org/tsconfig/#noFallthroughCasesInSwitch
"noFallthroughCasesInSwitch": true,
// https://www.typescriptlang.org/tsconfig/#noUncheckedIndexedAccess
"noUncheckedIndexedAccess": true,
// Error on unused local variables.
// https://www.typescriptlang.org/tsconfig/#noUnusedLocals
"noUnusedLocals": true,
// Error on unused function parameters.
// https://www.typescriptlang.org/tsconfig/#noUnusedParameters
"noUnusedParameters": true,
// Provides stronger guarantees when type checking.
// https://www.typescriptlang.org/tsconfig/#strict
"strict": true,
// -----------------------------------------------------------------
// [Javascript Support](https://www.typescriptlang.org/tsconfig/#JavaScript_Support_6247)
// -----------------------------------------------------------------
// Allow JavaScript files to be imported inside projects.
// https://www.typescriptlang.org/tsconfig/#allowJs
"allowJs": false,
// -----------------------------------------------------------------
// [Output Formatting](https://www.typescriptlang.org/tsconfig/#Output_Formatting_6256)
// -----------------------------------------------------------------
// Do not truncate error messages.
// https://www.typescriptlang.org/tsconfig/#noErrorTruncation
"noErrorTruncation": true,
// -----------------------------------------------------------------
// [Interop Constraints](https://www.typescriptlang.org/tsconfig/#Interop_Constraints_6252)
// -----------------------------------------------------------------
// Warn when code can’t be correctly interpreted by a single-file
// transpilation process.
// https://www.typescriptlang.org/tsconfig/#isolatedModules
"isolatedModules": true,
// Enfoce qualifying type imports with the `type` keyword.
// https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax
"verbatimModuleSyntax": true,
// -----------------------------------------------------------------
// [Language](https://www.typescriptlang.org/tsconfig/#Language_and_Environment_6254)
// -----------------------------------------------------------------
// Enables experimental support for decorators, which is a version of
// decorators that predates the TC39 standardization process.
// https://www.typescriptlang.org/tsconfig/#experimentalDecorators
"experimentalDecorators": true,
// -----------------------------------------------------------------
// [Modules](https://www.typescriptlang.org/tsconfig/#Modules_6244)
// -----------------------------------------------------------------
// Only allowed when not emitting files.
// https://www.typescriptlang.org/tsconfig/#allowImportingTsExtensions
"allowImportingTsExtensions": true,
// Module system the emitted code will use.
// https://www.typescriptlang.org/tsconfig/#module
// https://www.typescriptlang.org/docs/handbook/modules/reference.html#node16-nodenext
"module": "nodenext",
// How module paths will be resolved.
// https://www.typescriptlang.org/tsconfig/#moduleResolution
"moduleResolution": "nodenext",
// Allows importing modules with a .json extension.
// https://www.typescriptlang.org/tsconfig/#resolveJsonModule
"resolveJsonModule": true,
// Only packages listed here will be included in the global scope.
// https://www.typescriptlang.org/tsconfig/#types
"types": ["vite/client"],
// -----------------------------------------------------------------
// [Emitting](https://www.typescriptlang.org/tsconfig/#Emit_6246)
// -----------------------------------------------------------------
// Controls how JSX is transpiled when emitting files.
// https://www.typescriptlang.org/tsconfig/#jsx
"jsx": "react-jsx",
// Do not emit compiler output files like JavaScript source code, source
// maps or declarations if any errors were reported.
"noEmitOnError": true,
// -----------------------------------------------------------------
// [Projects](https://www.typescriptlang.org/tsconfig/#Projects_6255)
// -----------------------------------------------------------------
// Enables incremental compilation, improving performance.
// https://www.typescriptlang.org/tsconfig/#incremental
"incremental": true,
// Do not pollute the project's top-level with incremental compilation
// cache files.
// https://www.typescriptlang.org/tsconfig/#tsBuildInfoFile
"tsBuildInfoFile": "${configDir}/node_modules/buildinfo",
// -----------------------------------------------------------------
// [Completeness](https://www.typescriptlang.org/tsconfig/#Completeness_6257)
// -----------------------------------------------------------------
// Skip type checking libraries declaration files.
// https://www.typescriptlang.org/tsconfig/#skipLibCheck
"skipLibCheck": true
}
}