augury icon indicating copy to clipboard operation
augury copied to clipboard

Fix language of code block

Open munierujp opened this issue 5 years ago • 3 comments

Comment is invalid in JSON. So, it should be use JSON5 instead.

munierujp avatar Jan 28 '20 04:01 munierujp

This is inaccurate. The typescript team does not use JSON5.

See https://github.com/Microsoft/TypeScript/issues/12242

AleksanderBodurri avatar Apr 09 '20 22:04 AleksanderBodurri

jsonc?

"angularCompilerOptions": {
  /* ... */
  "debug": true
}

https://code.visualstudio.com/docs/languages/json#_json-with-comments

munierujp avatar Apr 10 '20 13:04 munierujp

@munierujp

According to the link you sent jsonc is the schema used for VS code configuration files, nothing to do with typescript.

Further down tsconfig.json is mentioned and it says that the schema to parse it is defined by the VS code extension for typescript.

Regardless, the comment in question is meant more as an indication that you could have more configuration above, not that you must have a comment there.

AleksanderBodurri avatar Apr 10 '20 16:04 AleksanderBodurri