-
-
Notifications
You must be signed in to change notification settings - Fork 547
/
tsconfig.json
29 lines (27 loc) · 939 Bytes
/
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
{
/// "extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"noEmit": true,
"noUnusedLocals": false, // Allow unused variables in test-d/*.ts files
"target": "ES2021", // Node.js 16
"lib": [
"ES2021",
],
"types": [], // Ensures no @types/ are unintentionally included
"exactOptionalPropertyTypes": true,
"skipLibCheck": false, // Ensures .d.ts files are checked: https://github.com/sindresorhus/tsconfig/issues/15
// Compatibility
"module": "commonjs",
"moduleResolution": "node",
// TODO: Use the reusable tsconfig again when targeting ESM.
// From https://github.com/sindresorhus/tsconfig/blob/main/tsconfig.json
"strict": true,
"noImplicitReturns": true,
"noImplicitOverride": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
// "noUncheckedIndexedAccess": true, // TODO: Enable.
"noPropertyAccessFromIndexSignature": true,
"useDefineForClassFields": true,
}
}