From bc9981887a1794585876d8d0dc7ebdb8c68f441b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 14 Oct 2024 10:38:00 -0400 Subject: [PATCH] feat: biome 1.9.3 (#17) --- Cargo.toml | 24 ++++++++++++------------ src/format_text.rs | 3 ++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9ebbc25..a205d00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,18 +25,18 @@ wasm = ["serde_json", "dprint-core/wasm"] [dependencies] anyhow = "1.0.51" -biome_css_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_css_parser = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_css_syntax = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_diagnostics = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_js_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_js_parser = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_js_syntax = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_json_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -biome_json_parser = { git = "https://github.com/biomejs/biome", tag = "cli/v1.8.3" } -dprint-core = { version = "0.67.0", default-features = false } -serde = { version = "1.0.193", features = ["derive"] } +biome_css_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_css_parser = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_css_syntax = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_diagnostics = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_js_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_js_parser = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_js_syntax = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_json_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +biome_json_parser = { git = "https://github.com/biomejs/biome", tag = "cli/v1.9.3" } +dprint-core = { version = "0.67.2", default-features = false } +serde = { version = "1.0.210", features = ["derive"] } serde_json = { version = "1.0", optional = true } [dev-dependencies] diff --git a/src/format_text.rs b/src/format_text.rs index 6f9f87a..4a81df0 100644 --- a/src/format_text.rs +++ b/src/format_text.rs @@ -18,7 +18,6 @@ use biome_json_formatter::context::JsonFormatOptions; use biome_json_parser::parse_json; use biome_json_parser::JsonParserOptions; use biome_json_parser::ParseDiagnostic; -use serde::de::value; use std::path::Path; use std::str::FromStr; @@ -66,6 +65,7 @@ pub fn format_text(file_path: &Path, input_text: &str, config: &Configuration) - syntax, JsParserOptions { parse_class_parameter_decorators: true, + grit_metavariables: false, }, ); if tree.has_errors() { @@ -89,6 +89,7 @@ pub fn format_text(file_path: &Path, input_text: &str, config: &Configuration) - CssParserOptions { allow_wrong_line_comments: true, css_modules: true, + grit_metavariables: false, }, ); if tree.has_errors() {