Skip to content

Commit

Permalink
feat(graphql_formatter): BracketSpacing option
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Jun 30, 2024
1 parent 8702b20 commit b3d5353
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions crates/biome_cli/src/commands/rage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>())}))}
{KeyValuePair("Include", markup!({DebugDisplay(formatter_configuration.include.iter().collect::<Vec<_>>())}))}
).fmt(fmt)?;
Expand All @@ -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)?;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b3d5353

Please sign in to comment.