From 60f2d57fb7a01a438e99c5d2ea655cfa44641755 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 4 May 2020 15:17:15 -0400 Subject: feat(fmt): Add `deno-fmt-ignore` and `deno-fmt-ignore-file` comment support (#5075) --- cli/flags.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cli/flags.rs') diff --git a/cli/flags.rs b/cli/flags.rs index decf3cb17..f87c338c4 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -601,7 +601,13 @@ fn fmt_subcommand<'a, 'b>() -> App<'a, 'b> { deno fmt --check Format stdin and write to stdout: - cat file.ts | deno fmt -", + cat file.ts | deno fmt - + +Ignore formatting code by preceding it with an ignore comment: + // deno-fmt-ignore + +Ignore formatting a file by adding an ignore comment at the top of the file: + // deno-fmt-ignore-file", ) .arg( Arg::with_name("check") -- cgit v1.2.3