-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
40 lines (40 loc) · 1.08 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
// Based on @tsconfig/node18-strictest-esm
// Copied here since not everything respects the `extends` property
{
"$schema": "https://json.schemastore.org/tsconfig",
"include": [
"src/**/*",
"build.mjs"
],
"exclude": [
"node_modules"
],
"display": "Node 18 + ESM + Strictest",
"compilerOptions": {
"lib": [
"es2022"
],
"module": "es2022",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
// We depend on ESLint to handle this correctly, since we use _ for allowed unused variables
"noUnusedLocals": false,
"noUnusedParameters": false,
"checkJs": true,
"resolveJsonModule": true,
"noEmit": true,
}
}
// vim: ft=jsonc