diff options
author | Pig Fang <g-plane@hotmail.com> | 2024-10-22 18:15:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 12:15:59 +0200 |
commit | 49d31fa4a26cba20481500c9a1bd8dda53777a67 (patch) | |
tree | dda1eec5fb593ad6e53bba5a03620916f6cfe009 /cli | |
parent | 9696e0b3780ede9bb59ab3cf3bf4f2df179d0b32 (diff) |
fix(fmt): upgrade formatters (#26469)
Fixes #25926
Fixes #26004
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 4 | ||||
-rw-r--r-- | cli/tools/fmt.rs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index e0fb4bb6a..d6d8982b1 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -130,8 +130,8 @@ libc.workspace = true libz-sys.workspace = true log = { workspace = true, features = ["serde"] } lsp-types.workspace = true -malva = "=0.10.1" -markup_fmt = "=0.13.1" +malva = "=0.11.0" +markup_fmt = "=0.14.0" memmem.workspace = true monch.workspace = true notify.workspace = true diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 8a4bc4e6c..81af25c34 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -978,6 +978,7 @@ fn get_resolved_malva_config( single_line_top_level_declarations: false, selector_override_comment_directive: "deno-fmt-selector-override".into(), ignore_comment_directive: "deno-fmt-ignore".into(), + ignore_file_comment_directive: "deno-fmt-ignore-file".into(), }; FormatOptions { @@ -1036,6 +1037,7 @@ fn get_resolved_markup_fmt_config( svelte_directive_shorthand: Some(true), astro_attr_shorthand: Some(true), ignore_comment_directive: "deno-fmt-ignore".into(), + ignore_file_comment_directive: "deno-fmt-ignore-file".into(), }; FormatOptions { |