summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPig Fang <g-plane@hotmail.com>2024-10-22 18:15:59 +0800
committerGitHub <noreply@github.com>2024-10-22 12:15:59 +0200
commit49d31fa4a26cba20481500c9a1bd8dda53777a67 (patch)
treedda1eec5fb593ad6e53bba5a03620916f6cfe009
parent9696e0b3780ede9bb59ab3cf3bf4f2df179d0b32 (diff)
fix(fmt): upgrade formatters (#26469)
Fixes #25926 Fixes #26004
-rw-r--r--Cargo.lock8
-rw-r--r--cli/Cargo.toml4
-rw-r--r--cli/tools/fmt.rs2
3 files changed, 8 insertions, 6 deletions
diff --git a/Cargo.lock b/Cargo.lock
index dbcded2da..27af67517 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4327,9 +4327,9 @@ dependencies = [
[[package]]
name = "malva"
-version = "0.10.1"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "484beda6e5d775ed06a8ec0fce79e51d39f49d834ed2a29da3f437079321804f"
+checksum = "1c67b97ed99f56b86fa3c010843441f1fcdb71884bab96b8551bb3d1e7c6d529"
dependencies = [
"aho-corasick",
"itertools 0.13.0",
@@ -4340,9 +4340,9 @@ dependencies = [
[[package]]
name = "markup_fmt"
-version = "0.13.1"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dab5ae899659fbe5c8835b2c8ca8d3e357974a3e454138925b404004973361f"
+checksum = "3f15d7b24ae4ea9b87279bc0696462a4fb6c2168847f2cc162a2da05fe1a0f61"
dependencies = [
"aho-corasick",
"css_dataset",
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 {