summaryrefslogtreecommitdiff
path: root/cli/tools/fmt.rs
diff options
context:
space:
mode:
authorWenheLI <wl1508@nyu.edu>2021-12-07 18:21:04 -0600
committerGitHub <noreply@github.com>2021-12-07 19:21:04 -0500
commitb51b0c834b596383084d4a9991695759af9d27ad (patch)
treebe731200e2ea45d566c26fe709fb179ab6664446 /cli/tools/fmt.rs
parent5c0636888c7b8686fca671a48718c7cf11ef252f (diff)
feat(cli): use deno fmt for lock and coverage files (#13018)
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r--cli/tools/fmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs
index 9a61851d3..2149552cd 100644
--- a/cli/tools/fmt.rs
+++ b/cli/tools/fmt.rs
@@ -209,7 +209,7 @@ fn format_markdown(
/// Formats JSON and JSONC using the rules provided by .deno()
/// of configuration builder of <https://github.com/dprint/dprint-plugin-json>.
/// See <https://git.io/Jt4ht> for configuration.
-fn format_json(
+pub fn format_json(
file_text: &str,
fmt_options: &FmtOptionsConfig,
) -> Result<String, String> {