type-fest/tsconfig.json
2024-07-12 14:05:36 +02:00

30 lines
939 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",
],
"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,
}
}