Skip to content

tsgo silently swallows JSON syntax errors in an extended tsconfig.json file #4131

@mds-ant

Description

@mds-ant

Steps to reproduce

bad.json:

{ this is not json

tsconfig.json:

{
  "extends": "./bad.json"
}

main.ts:

export const x = 1;
tsgo -p .

Behavior with typescript@6.0

bad.json(1,8): error TS1005: ':' expected.
bad.json(1,11): error TS1005: ',' expected.
bad.json(1,15): error TS1005: ',' expected.
bad.json(2,1): error TS1005: '}' expected.

Behavior with tsgo

No errors.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions