1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/cli/tests/badly_formatted_fixed.md
Satya Rohith d9b1f96897
feat: add json(c) support to deno fmt (#9292)
This commit adds support for formatting JSON and JSONC 
in "deno fmt".

New values "json" and "jsonc" are added to "--ext" flag for 
standard input processing.
2021-02-18 17:31:32 +01:00

361 B

Hello Markdown

console.log("Hello World");
console.log("Hello World2");
function hello(name: string) {
  console.log(name);
}

hello("alice");
function foo(): number {
  return 2;
}
{
  // Comment in JSON
  "key": "value",
  "key2": "value2"
}
{
  "numbers": ["1", "2"]
}