Files
tsgo/testdata/baselines/reference/tsc/commandLine/malformed-tsconfig-property-without-value.js
3e373f7e85 Prevent panic and duplicate diagnostics for malformed tsconfig properties (#4762)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-08-13 22:46:05 +00:00

1.5 KiB

currentDirectory::/home/src/workspaces/project
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/project/index.ts] *new*
 
//// [/home/src/workspaces/project/tsconfig.json] *new*
{"" }
 
tsgo
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
tsconfig.json:1:4 - error TS1328: Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal.
 
1 {"" }
~
 
tsconfig.json:1:5 - error TS1005: ':' expected.
 
1 {"" }
~
 
 
Found 2 errors in the same file, starting at: tsconfig.json:1
 
//// [/home/src/tslibs/TS/Lib/lib.es2025.full.d.ts] *Lib*
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}
declare const console: { log(msg: any): void; };
//// [/home/src/workspaces/project/index.js] *new*
"use strict";