Chris Cook @zirkelc.dev · Dec 14

JSON unfortunately does not allow comments. The alternative *.jsonc (JSON with comments) is not widely accepted. For example, Biome.js accepts a biome.jsonc configuration. A workaround is to tell VSCode to treat certain files as JSON with comments. For example, turbo.json can be treated as *.jsonc

2 likes 2 replies

?

Replies

Lars · Dec 14

This might cause issues when thinking the JSON is valid when in fact it's not, causing trouble elsewhere.

Chris Cook · Dec 14

It seems that this feature is not very well known. I posted this on @dev.to to some time ago and got a lot of feedback. dev.to/zirkelc/how-...