summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorPig Fang <g-plane@hotmail.com>2024-08-02 20:12:51 +0800
committerGitHub <noreply@github.com>2024-08-02 12:12:51 +0000
commit124a13280e3d71ed14ef0899b7bfd012f82ceb6e (patch)
treed3cd42098c74c0b665c3ea1090660ae87391be94 /cli/args/flags.rs
parentea121c9a0e162a83beeae62ed9e5a7911877bcbc (diff)
feat(fmt): support YAML (#24717)
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index 59e535ee0..75987e9d0 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -2002,7 +2002,8 @@ Ignore formatting a file by adding an ignore comment at the top of the file:
// prefer using ts for formatting instead of js because ts works in more scenarios
.default_value("ts")
.value_parser([
- "ts", "tsx", "js", "jsx", "md", "json", "jsonc", "ipynb",
+ "ts", "tsx", "js", "jsx", "md", "json", "jsonc", "yml", "yaml",
+ "ipynb",
]),
)
.arg(