diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-05-04 15:17:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 15:17:15 -0400 |
commit | 60f2d57fb7a01a438e99c5d2ea655cfa44641755 (patch) | |
tree | 0e70945a9525ebcf128883b1fbcb7832f3349186 /cli/flags.rs | |
parent | 8c509bd88517ebc92673d9da91e71a08868e830e (diff) |
feat(fmt): Add `deno-fmt-ignore` and `deno-fmt-ignore-file` comment support (#5075)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 8 |
1 files changed, 7 insertions, 1 deletions
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") |