From d9b1f96897239bf7de8cdfd11d40e3f99bb29a4a Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Thu, 18 Feb 2021 22:01:32 +0530 Subject: 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. --- cli/tests/badly_formatted_fixed.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cli/tests/badly_formatted_fixed.json (limited to 'cli/tests/badly_formatted_fixed.json') diff --git a/cli/tests/badly_formatted_fixed.json b/cli/tests/badly_formatted_fixed.json new file mode 100644 index 000000000..0d697a2c6 --- /dev/null +++ b/cli/tests/badly_formatted_fixed.json @@ -0,0 +1,8 @@ +{ + "key1": "value1", + "key2": true, + "key3": ["value2", "value3", false], + "keys": { + "more": "values" + } +} -- cgit v1.2.3