Skip to content

Consider JSON5 for config (e.g. trailing commas) #12242

Closed
@aseemk

Description

@aseemk

TypeScript Version: 2.0.9

Hi there,

Great work on TypeScript so far! A lot of thought has clearly been put into it, particularly the developer experience, so thank you.

A nice example is that tsconfig.json allows comments. This is really valuable.

I'm curious, though: instead of stripping out comments manually, would you guys be open to considering JSON5 for achieving both that as well as other niceties?

Trailing commas would be the big one to me: when I'm experimenting with new compiler options, that keeps tripping me up. More flexible quoting would also be nice, but less of a big deal.

Big disclaimer: I'm the original author of JSON5, though others maintain it these days, and it's reasonably popular on its own. (E.g. used by Babel and React Native for their config files.)

Thanks for the consideration. Cheers.

(Edit: FYI I just made a similar request for tslint.json: palantir/tslint#1721)

Metadata

Metadata

Assignees

Labels

FixedA PR has been merged for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions