type-fest/tsconfig.json
2024-06-25 14:26:25 +02:00

29 lines
873 B
JSON

{
/// "extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"noEmit": true,
"noUnusedLocals": false, // Allow unused variables in test-d/*.ts files
"target": "ES2021", // Node.js 16
"lib": [
"ES2021",
],
"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,
}
}