-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtsconfig.json
More file actions
32 lines (30 loc) · 981 Bytes
/
tsconfig.json
File metadata and controls
32 lines (30 loc) · 981 Bytes
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
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"module": "esnext",
"skipLibCheck": true,
"types": ["node", "vitest/globals"],
/* Bundler mode */
"rootDir": ".",
"baseUrl": "./src",
"outDir": "./dist",
"moduleResolution": "bundler",
// "allowImportingTsExtensions": true,
// "resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
/* Type Checking */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true, // this should honestly be the default, since you're not guaranteed to get a value when you key into an object
"exactOptionalPropertyTypes": true // | undefined needs to be explicit
},
"include": ["src", "tests"]
}