-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
49 lines (40 loc) · 1.25 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
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
// no emit by default, build config enables it
"noEmit": true,
// remove comments from output
"removeComments": true,
// the stricter, the better
// https://whatislove.dev/articles/the-strictest-typescript-config/
"allowJs": false,
"exactOptionalPropertyTypes": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"strict": true,
"strictNullChecks": true,
// esm
"esModuleInterop": true,
"isolatedModules": true,
"lib": ["ESNext"],
"module": "ESNext",
"target": "esnext",
// follow esm conventions
// tsc-alias needs outDir to be set
"moduleDetection": "force",
"moduleResolution": "bundler",
"outDir": "./build",
// paths for imports
// 🧪 is neat, don't be a hater
"baseUrl": ".",
"paths": { "~/*": ["./src/*"], "🧪/*": ["./test/*"] },
"rootDir": ".",
// 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
},
"exclude": ["node_modules", "build", "coverage", "dist"]
}