-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
63 lines (55 loc) · 1.45 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"$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"],
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "bundler",
"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, next
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
],
"types": ["@testing-library/jest-dom"],
"incremental": true
},
// also for next
"include": [
"./*.config.js",
"./*config.ts",
".next/types/**/*.ts",
"./build/types/**/*.ts",
"./dist/types/**/*.ts",
"./next-env.d.ts",
"./src/**/*.ts",
"./src/**/*.tsx",
"./test/**/*.ts",
"./test/**/*.tsx"
],
"exclude": ["node_modules", "build", "coverage", "dist"]
}