mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
The first pass left three classes of config that BOTH tsc 5.9 and tsc 7
reject. Each was proven against both compilers before changing:
TS5090 A `paths` target must be relative once `baseUrl` is gone. The
first pass skipped the "./" prefix wherever baseUrl pointed at
the config's own directory, reasoning it was semantically
equivalent. It is not — without baseUrl a non-relative target
is rejected outright, by 5.9 as well as 7.
TS5110 `moduleResolution: node16` requires `module: node16`. The first
pass mapped commonjs projects to node16 resolution alone, which
BROKE those configs for the current toolchain. Both are now set.
TS5102 `downlevelIteration` is also removed in TS7; it was missing from
the dead-flag list.
Verified: repos that tsc 7 previously refused (base-studio, js-sdk, kv-js)
now report zero config errors on tsc 7 AND tsc 5.9.
Co-Authored-By: Hanzo Dev <[email protected]>
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"allowSyntheticDefaultImports": true,
|
|
"composite": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"importHelpers": true,
|
|
"incremental": true,
|
|
"inlineSources": false,
|
|
"isolatedModules": true,
|
|
"lib": ["es2022", "dom"],
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"noEmit": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitThis": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"outDir": "./dist/out-tsc",
|
|
"preserveConstEnums": true,
|
|
"preserveSymlinks": false,
|
|
"removeComments": false,
|
|
"rootDir": ".",
|
|
"skipDefaultLibCheck": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
"strict": true,
|
|
"strictFunctionTypes": true,
|
|
"strictNullChecks": true,
|
|
"strictPropertyInitialization": true,
|
|
"target": "esnext",
|
|
"types": ["node"],
|
|
"useUnknownInCatchVariables": true
|
|
}
|
|
}
|