From 49d31fa4a26cba20481500c9a1bd8dda53777a67 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Tue, 22 Oct 2024 18:15:59 +0800 Subject: fix(fmt): upgrade formatters (#26469) Fixes #25926 Fixes #26004 --- cli/Cargo.toml | 4 ++-- cli/tools/fmt.rs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'cli') 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 { -- cgit v1.2.3