-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
37 lines (31 loc) · 1.33 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
{
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
/* Linting */
"skipLibCheck": true,
"strict": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
/* ----------------------------------------------------------- */
/* TSConfig Cheat Sheet */
/* ----------------------------------------------------------- */
/* Base Options: */
// "esModuleInterop": true, // Helps mend a few of the fences between CommonJS and ES Modules.
"resolveJsonModule": true, // Allows you to import .json files. Always useful.
"isolatedModules": true, // This option prevents a few TS features which are unsafe when treating modules as isolated files.
/* Strictness */
"noUncheckedIndexedAccess": true, // Prevents you from accessing an array or object without first checking if it's defined. This is a great way to prevent runtime errors, and should really be included in strict.
/* If your code runs in the DOM: */
// "lib": ["es2022", "dom", "dom.iterable"],
},
}