-
Notifications
You must be signed in to change notification settings - Fork 129
Allow comments in tsconfig.json #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this should be implemented in TypeScript first. If this would be implemented in gulp-typescript only, you cannot use the tsconfig file in VSCode for instance, whereas this configuration file was designed to be a universal config file. I'm not sure whether such issue has already been reported at the TypeScript repository. If not, you can report an issue there. |
@ivogabe Thanks, I've raised a new issue on the official TypeScript project. Let's see what happens. |
@ivogabe Time to reopen this issue I think! |
👍 FYI, TS people just removed the JSON comments and then parsed the file. |
Most robust approach would be to call It's not as intuitive as you'd think, for instance it supports |
Well, that solution I posted is changed a lot by the TS people while merging into TS. This is their merged solution: See the discussion: |
Thanks for fixing the issue. Any plans about release? |
Probably next week |
@ivogabe Has this feature made it out yet? |
It has been added in v2.12.1 |
@ivogabe Great! |
Comments don't seem to be allowed in the tsconfig.json file. See this article for why it is ok according to Douglas Crockford to add them to json config files.
This is the error I get when adding comments to my tsconfig.json file:
The text was updated successfully, but these errors were encountered: