mirror of
https://github.com/sindresorhus/type-fest.git
synced 2025-12-08 19:25:05 +00:00
30 lines
939 B
JSON
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,
|
|
}
|
|
}
|