-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
43 lines (35 loc) · 1.07 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
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
// type checking only
"noEmit": true,
// importing ts files
"allowImportingTsExtensions": true,
// hella strict
// https://whatislove.dev/articles/the-strictest-typescript-config/
"allowJs": false,
"exactOptionalPropertyTypes": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"strict": true,
"strictNullChecks": true,
// esm, the node way
"esModuleInterop": true,
"isolatedModules": true,
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"module": "NodeNext",
"moduleDetection": "force",
"moduleResolution": "nodenext",
"target": "esnext",
"verbatimModuleSyntax": true,
// pnpm compatibility
"preserveSymlinks": true,
// importing json happens more often than you think
"resolveJsonModule": true,
// don't try to check for errors on imported libs
"skipLibCheck": true,
// react
"jsx": "react-jsx"
},
"exclude": ["node_modules", "build", "coverage", "dist"]
}