Skip to content

Commit

Permalink
feat: biome 1.9.3 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Oct 14, 2024
1 parent 7e4a02a commit bc99818
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion src/format_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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() {
Expand All @@ -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() {
Expand Down

0 comments on commit bc99818

Please sign in to comment.