From b3d53538496f5b32f0a532065a5c3f9c4b7e292a Mon Sep 17 00:00:00 2001 From: Denis Bezrukov <6227442+denbezrukov@users.noreply.github.com> Date: Sun, 30 Jun 2024 08:03:07 +0300 Subject: [PATCH] feat(graphql_formatter): BracketSpacing option --- crates/biome_cli/src/commands/rage.rs | 6 +++--- .../main_commands_rage/with_formatter_configuration.snap | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/biome_cli/src/commands/rage.rs b/crates/biome_cli/src/commands/rage.rs index 202cbae83607..057c6ec1fec3 100644 --- a/crates/biome_cli/src/commands/rage.rs +++ b/crates/biome_cli/src/commands/rage.rs @@ -217,7 +217,7 @@ impl Display for RageConfiguration<'_, '_> { {KeyValuePair("Line ending", markup!({DebugDisplay(formatter_configuration.line_ending)}))} {KeyValuePair("Line width", markup!({DebugDisplay(formatter_configuration.line_width.value())}))} {KeyValuePair("Attribute position", markup!({DebugDisplay(formatter_configuration.attribute_position)}))} - {KeyValuePair("Bracket spacing", markup!({DebugDisplayOption(formatter_configuration.bracket_spacing)}))} + {KeyValuePair("Bracket spacing", markup!({DebugDisplay(formatter_configuration.bracket_spacing)}))} {KeyValuePair("Ignore", markup!({DebugDisplay(formatter_configuration.ignore.iter().collect::>())}))} {KeyValuePair("Include", markup!({DebugDisplay(formatter_configuration.include.iter().collect::>())}))} ).fmt(fmt)?; @@ -232,14 +232,14 @@ impl Display for RageConfiguration<'_, '_> { {KeyValuePair("Trailing commas", markup!({DebugDisplay(javascript_formatter_configuration.trailing_commas)}))} {KeyValuePair("Semicolons", markup!({DebugDisplay(javascript_formatter_configuration.semicolons)}))} {KeyValuePair("Arrow parentheses", markup!({DebugDisplay(javascript_formatter_configuration.arrow_parentheses)}))} - {KeyValuePair("Bracket spacing", markup!({DebugDisplay(javascript_formatter_configuration.bracket_spacing)}))} + {KeyValuePair("Bracket spacing", markup!({DebugDisplayOption(javascript_formatter_configuration.bracket_spacing)}))} {KeyValuePair("Bracket same line", markup!({DebugDisplay(javascript_formatter_configuration.bracket_same_line)}))} {KeyValuePair("Quote style", markup!({DebugDisplay(javascript_formatter_configuration.quote_style)}))} {KeyValuePair("Indent style", markup!({DebugDisplayOption(javascript_formatter_configuration.indent_style)}))} {KeyValuePair("Indent width", markup!({DebugDisplayOption(javascript_formatter_configuration.indent_width)}))} {KeyValuePair("Line ending", markup!({DebugDisplayOption(javascript_formatter_configuration.line_ending)}))} {KeyValuePair("Line width", markup!({DebugDisplayOption(javascript_formatter_configuration.line_width.map(|lw| lw.value()))}))} - {KeyValuePair("Attribute position", markup!({DebugDisplay(javascript_formatter_configuration.attribute_position)}))} + {KeyValuePair("Attribute position", markup!({DebugDisplayOption(javascript_formatter_configuration.attribute_position)}))} ) .fmt(fmt)?; diff --git a/crates/biome_cli/tests/snapshots/main_commands_rage/with_formatter_configuration.snap b/crates/biome_cli/tests/snapshots/main_commands_rage/with_formatter_configuration.snap index 68a4cc0f6008..58086b341e8b 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_rage/with_formatter_configuration.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_rage/with_formatter_configuration.snap @@ -93,14 +93,14 @@ JavaScript Formatter: Trailing commas: All Semicolons: Always Arrow parentheses: Always - Bracket spacing: None + Bracket spacing: unset Bracket same line: false Quote style: Double Indent style: Tab Indent width: 2 Line ending: Lf Line width: 100 - Attribute position: None + Attribute position: unset JSON Formatter: Enabled: true @@ -124,8 +124,8 @@ GraphQL Formatter: Indent width: unset Line ending: unset Line width: unset - Bracket spacing: None - Quote style: None + Bracket spacing: unset + Quote style: unset Server: Version: 0.0.0