From 59a5f745ffffc7145bdf2c28504f735ed26273e3 Mon Sep 17 00:00:00 2001 From: luisherranz Date: Thu, 29 Jan 2026 13:07:13 +0100 Subject: [PATCH 01/19] feat(formatter): add delimiterSpacing option to JS/JSON/CSS formatters chore(formatter): add changeset --- .changeset/delimiter-spacing-option.md | 26 ++++++++++ .../biome_cli/src/execute/migrate/prettier.rs | 2 + .../main_commands_check/check_help.snap | 10 ++++ .../snapshots/main_commands_ci/ci_help.snap | 10 ++++ .../main_commands_format/format_help.snap | 10 ++++ crates/biome_configuration/src/css.rs | 7 ++- crates/biome_configuration/src/formatter.rs | 15 +++++- .../src/javascript/formatter.rs | 10 +++- crates/biome_configuration/src/json.rs | 8 ++- crates/biome_configuration/src/overrides.rs | 11 +++- crates/biome_formatter/src/lib.rs | 50 +++++++++++++++++++ 11 files changed, 151 insertions(+), 8 deletions(-) create mode 100644 .changeset/delimiter-spacing-option.md diff --git a/.changeset/delimiter-spacing-option.md b/.changeset/delimiter-spacing-option.md new file mode 100644 index 000000000000..5f903d6417f7 --- /dev/null +++ b/.changeset/delimiter-spacing-option.md @@ -0,0 +1,26 @@ +--- +"@biomejs/biome": minor +--- + +Added the `delimiterSpacing` formatter option. This option inserts spaces inside delimiters. Affects parentheses `()`, square brackets `[]`, TypeScript angle brackets `<>`, and JSX curly braces `{}`. It can be configured globally via `formatter.delimiterSpacing` or per-language via `javascript.formatter.delimiterSpacing`, `json.formatter.delimiterSpacing`, and `css.formatter.delimiterSpacing`. Defaults to false. + +**JavaScript:** + +```diff +- if (condition) {} ++ if ( condition ) {} +``` + +**JSON:** + +```diff +- [1, 2, 3] ++ [ 1, 2, 3 ] +``` + +**CSS:** + +```diff +- rgba(0, 0, 0, 1) ++ rgba( 0, 0, 0, 1 ) +``` diff --git a/crates/biome_cli/src/execute/migrate/prettier.rs b/crates/biome_cli/src/execute/migrate/prettier.rs index e289338433f7..d62de81829ba 100644 --- a/crates/biome_cli/src/execute/migrate/prettier.rs +++ b/crates/biome_cli/src/execute/migrate/prettier.rs @@ -235,6 +235,7 @@ impl TryFrom for biome_configuration::Configuration { bracket_same_line: Some(value.bracket_line.into()), attribute_position: Some(AttributePosition::default()), bracket_spacing: Some(BracketSpacing::default()), + delimiter_spacing: None, expand: Some(value.object_wrap.into()), format_with_errors: Some(false.into()), includes: None, @@ -276,6 +277,7 @@ impl TryFrom for biome_configuration::Configuration { quote_style: Some(quote_style), quote_properties: Some(value.quote_props.into()), bracket_spacing: Some(value.bracket_spacing.into()), + delimiter_spacing: None, jsx_quote_style: Some(jsx_quote_style), attribute_position: Some(AttributePosition::default()), operator_linebreak: None, diff --git a/crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap b/crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap index acb2583e3881..2a67868dc239 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap @@ -46,6 +46,9 @@ The configuration that is contained inside the file `biome.json` apply to self closing elements). --bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --delimiter-spacing= Whether to insert spaces inside delimiters. Affects + parentheses `()`, square brackets `[]`, TypeScript angle brackets + `<>`, and JSX curly braces `{}`. Defaults to false. --expand= Whether to expand arrays and objects on multiple lines. When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, and array literals are formatted on a @@ -99,6 +102,9 @@ The configuration that is contained inside the file `biome.json` JSX elements. Defaults to auto. --javascript-formatter-bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --javascript-formatter-delimiter-spacing= Whether to insert spaces inside + delimiters. Affects parentheses `()`, square brackets `[]`, TypeScript + angle brackets `<>`, and JSX curly braces `{}`. Defaults to false. --javascript-formatter-expand= Whether to expand arrays and objects on multiple lines. When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, and array literals @@ -152,6 +158,8 @@ The configuration that is contained inside the file `biome.json` Defaults to "auto". --json-formatter-bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --json-formatter-delimiter-spacing= Whether to insert spaces inside square + brackets `[]`. Defaults to false. --json-formatter-trailing-newline= Whether to add a trailing newline at the end of the file. Setting this option to `false` is **highly discouraged** because it @@ -183,6 +191,8 @@ The configuration that is contained inside the file `biome.json` super languages) files. Defaults to 80. --css-formatter-quote-style= The type of quotes used in CSS code. Defaults to double. + --css-formatter-delimiter-spacing= Whether to insert spaces inside delimiters. + Affects parentheses `()` and square brackets `[]`. Defaults to false. --css-formatter-trailing-newline= Whether to add a trailing newline at the end of the file. Setting this option to `false` is **highly discouraged** because it diff --git a/crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap b/crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap index 7e176e45ec5b..66495224f6bd 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap @@ -47,6 +47,9 @@ The configuration that is contained inside the file `biome.json` apply to self closing elements). --bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --delimiter-spacing= Whether to insert spaces inside delimiters. Affects + parentheses `()`, square brackets `[]`, TypeScript angle brackets + `<>`, and JSX curly braces `{}`. Defaults to false. --expand= Whether to expand arrays and objects on multiple lines. When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, and array literals are formatted on a @@ -100,6 +103,9 @@ The configuration that is contained inside the file `biome.json` JSX elements. Defaults to auto. --javascript-formatter-bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --javascript-formatter-delimiter-spacing= Whether to insert spaces inside + delimiters. Affects parentheses `()`, square brackets `[]`, TypeScript + angle brackets `<>`, and JSX curly braces `{}`. Defaults to false. --javascript-formatter-expand= Whether to expand arrays and objects on multiple lines. When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, and array literals @@ -153,6 +159,8 @@ The configuration that is contained inside the file `biome.json` Defaults to "auto". --json-formatter-bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --json-formatter-delimiter-spacing= Whether to insert spaces inside square + brackets `[]`. Defaults to false. --json-formatter-trailing-newline= Whether to add a trailing newline at the end of the file. Setting this option to `false` is **highly discouraged** because it @@ -184,6 +192,8 @@ The configuration that is contained inside the file `biome.json` super languages) files. Defaults to 80. --css-formatter-quote-style= The type of quotes used in CSS code. Defaults to double. + --css-formatter-delimiter-spacing= Whether to insert spaces inside delimiters. + Affects parentheses `()` and square brackets `[]`. Defaults to false. --css-formatter-trailing-newline= Whether to add a trailing newline at the end of the file. Setting this option to `false` is **highly discouraged** because it diff --git a/crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap b/crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap index 864991ab73a8..6231f194862b 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap @@ -23,6 +23,9 @@ Generic options applied to all files apply to self closing elements). --bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --delimiter-spacing= Whether to insert spaces inside delimiters. Affects + parentheses `()`, square brackets `[]`, TypeScript angle brackets + `<>`, and JSX curly braces `{}`. Defaults to false. --expand= Whether to expand arrays and objects on multiple lines. When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, and array literals are formatted on a @@ -75,6 +78,9 @@ Formatting options specific to the JavaScript files JSX elements. Defaults to auto. --javascript-formatter-bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --javascript-formatter-delimiter-spacing= Whether to insert spaces inside + delimiters. Affects parentheses `()`, square brackets `[]`, TypeScript + angle brackets `<>`, and JSX curly braces `{}`. Defaults to false. --javascript-formatter-expand= Whether to expand arrays and objects on multiple lines. When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, and array literals @@ -147,6 +153,8 @@ Options that changes how the CSS formatter behaves super languages) files. Defaults to 80. --css-formatter-quote-style= The type of quotes used in CSS code. Defaults to double. + --css-formatter-delimiter-spacing= Whether to insert spaces inside delimiters. + Affects parentheses `()` and square brackets `[]`. Defaults to false. --css-formatter-trailing-newline= Whether to add a trailing newline at the end of the file. Setting this option to `false` is **highly discouraged** because it @@ -293,6 +301,8 @@ Available options: Defaults to "auto". --json-formatter-bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. + --json-formatter-delimiter-spacing= Whether to insert spaces inside square + brackets `[]`. Defaults to false. --json-formatter-trailing-newline= Whether to add a trailing newline at the end of the file. Setting this option to `false` is **highly discouraged** because it diff --git a/crates/biome_configuration/src/css.rs b/crates/biome_configuration/src/css.rs index 3a90eccb4112..5c075a357724 100644 --- a/crates/biome_configuration/src/css.rs +++ b/crates/biome_configuration/src/css.rs @@ -1,7 +1,7 @@ use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ - IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle, TrailingNewline, + DelimiterSpacing, IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle, TrailingNewline, }; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; @@ -101,6 +101,11 @@ pub struct CssFormatterConfiguration { #[serde(skip_serializing_if = "Option::is_none")] pub quote_style: Option, + /// Whether to insert spaces inside delimiters. Affects parentheses `()` and square brackets `[]`. Defaults to false. + #[bpaf(long("css-formatter-delimiter-spacing"), argument("true|false"))] + #[serde(skip_serializing_if = "Option::is_none")] + pub delimiter_spacing: Option, + /// Whether to add a trailing newline at the end of the file. /// /// Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools: diff --git a/crates/biome_configuration/src/formatter.rs b/crates/biome_configuration/src/formatter.rs index be01db2809c3..777c4c96deed 100644 --- a/crates/biome_configuration/src/formatter.rs +++ b/crates/biome_configuration/src/formatter.rs @@ -1,8 +1,8 @@ use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ - AttributePosition, BracketSameLine, BracketSpacing, Expand, IndentStyle, IndentWidth, - LineEnding, LineWidth, TrailingNewline, + AttributePosition, BracketSameLine, BracketSpacing, DelimiterSpacing, Expand, IndentStyle, + IndentWidth, LineEnding, LineWidth, TrailingNewline, }; use bpaf::Bpaf; use serde::{Deserialize, Serialize}; @@ -64,6 +64,13 @@ pub struct FormatterConfiguration { #[serde(skip_serializing_if = "Option::is_none")] pub bracket_spacing: Option, + /// Whether to insert spaces inside delimiters. Affects parentheses `()`, + /// square brackets `[]`, TypeScript angle brackets `<>`, and JSX curly + /// braces `{}`. Defaults to false. + #[bpaf(long("delimiter-spacing"), argument("true|false"))] + #[serde(skip_serializing_if = "Option::is_none")] + pub delimiter_spacing: Option, + /// Whether to expand arrays and objects on multiple lines. /// When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, /// and array literals are formatted on a single line if it fits in the line. @@ -136,6 +143,10 @@ impl FormatterConfiguration { self.bracket_spacing.unwrap_or_default() } + pub fn delimiter_spacing_resolved(&self) -> DelimiterSpacing { + self.delimiter_spacing.unwrap_or_default() + } + pub fn expand_resolved(&self) -> Expand { self.expand.unwrap_or_default() } diff --git a/crates/biome_configuration/src/javascript/formatter.rs b/crates/biome_configuration/src/javascript/formatter.rs index 7f2a5783d4cb..627d197691e6 100644 --- a/crates/biome_configuration/src/javascript/formatter.rs +++ b/crates/biome_configuration/src/javascript/formatter.rs @@ -1,8 +1,8 @@ use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ - AttributePosition, BracketSameLine, BracketSpacing, Expand, IndentStyle, IndentWidth, - LineEnding, LineWidth, QuoteStyle, TrailingNewline, + AttributePosition, BracketSameLine, BracketSpacing, DelimiterSpacing, Expand, IndentStyle, + IndentWidth, LineEnding, LineWidth, QuoteStyle, TrailingNewline, }; use biome_js_formatter::context::{ ArrowParentheses, OperatorLinebreak, QuoteProperties, Semicolons, @@ -108,6 +108,12 @@ pub struct JsFormatterConfiguration { #[serde(skip_serializing_if = "Option::is_none")] pub bracket_spacing: Option, + // it's also a top-level configurable property. + /// Whether to insert spaces inside delimiters. Affects parentheses `()`, square brackets `[]`, TypeScript angle brackets `<>`, and JSX curly braces `{}`. Defaults to false. + #[bpaf(long("javascript-formatter-delimiter-spacing"), argument("true|false"))] + #[serde(skip_serializing_if = "Option::is_none")] + pub delimiter_spacing: Option, + /// Whether to expand arrays and objects on multiple lines. /// When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, /// and array literals are formatted on a single line if it fits in the line. diff --git a/crates/biome_configuration/src/json.rs b/crates/biome_configuration/src/json.rs index 618c3eb0bd41..4945d23bf5bf 100644 --- a/crates/biome_configuration/src/json.rs +++ b/crates/biome_configuration/src/json.rs @@ -1,7 +1,8 @@ use crate::bool::Bool; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ - BracketSpacing, Expand, IndentStyle, IndentWidth, LineEnding, LineWidth, TrailingNewline, + BracketSpacing, DelimiterSpacing, Expand, IndentStyle, IndentWidth, LineEnding, LineWidth, + TrailingNewline, }; use biome_json_formatter::context::TrailingCommas; use bpaf::Bpaf; @@ -109,6 +110,11 @@ pub struct JsonFormatterConfiguration { #[serde(skip_serializing_if = "Option::is_none")] pub bracket_spacing: Option, + /// Whether to insert spaces inside square brackets `[]`. Defaults to false. + #[bpaf(long("json-formatter-delimiter-spacing"), argument("true|false"))] + #[serde(skip_serializing_if = "Option::is_none")] + pub delimiter_spacing: Option, + /// Whether to add a trailing newline at the end of the file. /// /// Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools: diff --git a/crates/biome_configuration/src/overrides.rs b/crates/biome_configuration/src/overrides.rs index a4e244818f12..1fbd9eb3e0d9 100644 --- a/crates/biome_configuration/src/overrides.rs +++ b/crates/biome_configuration/src/overrides.rs @@ -9,8 +9,8 @@ use crate::{ }; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::{ - AttributePosition, BracketSameLine, BracketSpacing, Expand, IndentStyle, IndentWidth, - LineEnding, LineWidth, TrailingNewline, + AttributePosition, BracketSameLine, BracketSpacing, DelimiterSpacing, Expand, IndentStyle, + IndentWidth, LineEnding, LineWidth, TrailingNewline, }; use biome_plugin_loader::Plugins; use bpaf::Bpaf; @@ -165,6 +165,13 @@ pub struct OverrideFormatterConfiguration { #[bpaf(long("bracket-spacing"), argument("true|false"))] pub bracket_spacing: Option, + /// Whether to insert spaces inside delimiters. Affects parentheses `()`, + /// square brackets `[]`, TypeScript angle brackets `<>`, and JSX curly + /// braces `{}`. Defaults to false. + #[serde(skip_serializing_if = "Option::is_none")] + #[bpaf(long("delimiter-spacing"), argument("true|false"))] + pub delimiter_spacing: Option, + /// Whether to expand arrays and objects on multiple lines. /// When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, /// and array literals are formatted on a single line if it fits in the line. diff --git a/crates/biome_formatter/src/lib.rs b/crates/biome_formatter/src/lib.rs index cd50774d0a31..94cbf303a5aa 100644 --- a/crates/biome_formatter/src/lib.rs +++ b/crates/biome_formatter/src/lib.rs @@ -711,6 +711,56 @@ impl FromStr for BracketSpacing { } } +/// Whether to insert spaces inside delimiters. Affects parentheses `()`, square brackets `[]`, TypeScript angle brackets `<>`, and JSX curly braces `{}`. +#[derive(Clone, Copy, Debug, Default, Deserializable, Eq, Hash, Merge, PartialEq)] +#[cfg_attr( + feature = "serde", + derive(serde::Serialize, serde::Deserialize), + serde(rename_all = "camelCase") +)] +#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] +pub struct DelimiterSpacing(bool); + +impl DelimiterSpacing { + /// Return the boolean value for this [DelimiterSpacing] + pub fn value(&self) -> bool { + self.0 + } +} + +impl From for DelimiterSpacing { + fn from(value: bool) -> Self { + Self(value) + } +} + +impl std::fmt::Display for DelimiterSpacing { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + std::write!(f, "{:?}", self.value()) + } +} + +impl biome_console::fmt::Display for DelimiterSpacing { + fn fmt(&self, fmt: &mut biome_console::fmt::Formatter) -> std::io::Result<()> { + fmt.write_str(&self.0.to_string()) + } +} + +impl FromStr for DelimiterSpacing { + type Err = &'static str; + + fn from_str(s: &str) -> Result { + let value = bool::from_str(s); + + match value { + Ok(value) => Ok(Self(value)), + Err(_) => Err( + "Value not supported for DelimiterSpacing. Supported values are 'true' and 'false'.", + ), + } + } +} + #[derive(Clone, Copy, Debug, Default, Deserializable, Eq, Hash, Merge, PartialEq)] #[cfg_attr( feature = "serde", From f754e26ebc0bf3ee15a72c2544942aa766c9a2f0 Mon Sep 17 00:00:00 2001 From: luisherranz Date: Thu, 29 Jan 2026 13:07:40 +0100 Subject: [PATCH 02/19] feat(js-formatter): implement delimiterSpacing for JavaScript and TypeScript --- crates/biome_js_formatter/src/context.rs | 24 ++- .../assignments/array_assignment_pattern.rs | 9 +- .../src/js/auxiliary/template_element.rs | 34 +++- .../src/js/bindings/array_binding_pattern.rs | 9 +- .../src/js/bindings/parameters.rs | 16 +- .../src/js/classes/setter_class_member.rs | 53 ++++-- .../src/js/declarations/catch_declaration.rs | 24 ++- .../src/js/expressions/array_expression.rs | 10 +- .../expressions/arrow_function_expression.rs | 43 ++++- .../src/js/expressions/call_arguments.rs | 179 +++++++++++++++--- .../expressions/computed_member_expression.rs | 36 +++- .../expressions/parenthesized_expression.rs | 32 +++- .../src/js/expressions/unary_expression.rs | 47 ++++- .../src/js/objects/computed_member_name.rs | 29 ++- .../src/js/objects/setter_object_member.rs | 47 +++-- .../src/js/statements/do_while_statement.rs | 7 +- .../src/js/statements/for_in_statement.rs | 51 +++-- .../src/js/statements/for_of_statement.rs | 19 +- .../src/js/statements/for_statement.rs | 23 ++- .../src/js/statements/if_statement.rs | 7 +- .../src/js/statements/switch_statement.rs | 7 +- .../src/js/statements/while_statement.rs | 7 +- .../attribute/expression_attribute_value.rs | 35 +++- .../src/jsx/attribute/spread_attribute.rs | 23 ++- .../src/jsx/auxiliary/expression_child.rs | 49 +++-- .../src/jsx/auxiliary/spread_child.rs | 17 +- crates/biome_js_formatter/src/lib.rs | 8 + .../assignments/type_assertion_assignment.rs | 7 +- .../auxiliary/index_signature_type_member.rs | 41 ++-- .../src/ts/bindings/type_parameters.rs | 4 +- .../classes/index_signature_class_member.rs | 43 +++-- .../src/ts/expressions/type_arguments.rs | 36 +++- .../expressions/type_assertion_expression.rs | 6 +- .../src/ts/types/indexed_access_type.rs | 36 +++- .../src/ts/types/mapped_type.rs | 57 ++++-- .../src/ts/types/tuple_type.rs | 8 +- crates/biome_js_formatter/src/utils/jsx.rs | 9 +- 37 files changed, 837 insertions(+), 255 deletions(-) diff --git a/crates/biome_js_formatter/src/context.rs b/crates/biome_js_formatter/src/context.rs index 19763ea13d67..d75fcf5e745b 100644 --- a/crates/biome_js_formatter/src/context.rs +++ b/crates/biome_js_formatter/src/context.rs @@ -4,9 +4,9 @@ use crate::comments::{FormatJsLeadingComment, JsCommentStyle, JsComments}; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::printer::PrinterOptions; use biome_formatter::{ - AttributePosition, BracketSameLine, BracketSpacing, CstFormatContext, Expand, FormatContext, - FormatElement, FormatOptions, IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle, - TrailingNewline, TransformSourceMap, + AttributePosition, BracketSameLine, BracketSpacing, CstFormatContext, DelimiterSpacing, Expand, + FormatContext, FormatElement, FormatOptions, IndentStyle, IndentWidth, LineEnding, LineWidth, + QuoteStyle, TrailingNewline, TransformSourceMap, }; use biome_js_syntax::{AnyJsFunctionBody, JsFileSource, JsLanguage}; use std::fmt; @@ -177,6 +177,9 @@ pub struct JsFormatOptions { /// Whether to insert spaces around brackets in object literals. Defaults to true. bracket_spacing: BracketSpacing, + /// Whether to insert spaces inside delimiters. Affects parentheses `()`, square brackets `[]`, TypeScript angle brackets `<>`, and JSX curly braces `{}`. Defaults to false. + delimiter_spacing: DelimiterSpacing, + /// Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line, rather than being alone on the following line. Defaults to false. bracket_same_line: BracketSameLine, @@ -211,6 +214,7 @@ impl JsFormatOptions { semicolons: Semicolons::default(), arrow_parentheses: ArrowParentheses::default(), bracket_spacing: BracketSpacing::default(), + delimiter_spacing: DelimiterSpacing::default(), bracket_same_line: BracketSameLine::default(), attribute_position: AttributePosition::default(), expand: Expand::default(), @@ -229,6 +233,11 @@ impl JsFormatOptions { self } + pub fn with_delimiter_spacing(mut self, delimiter_spacing: DelimiterSpacing) -> Self { + self.delimiter_spacing = delimiter_spacing; + self + } + pub fn with_bracket_same_line(mut self, bracket_same_line: BracketSameLine) -> Self { self.bracket_same_line = bracket_same_line; self @@ -307,6 +316,10 @@ impl JsFormatOptions { self.bracket_spacing = bracket_spacing; } + pub fn set_delimiter_spacing(&mut self, delimiter_spacing: DelimiterSpacing) { + self.delimiter_spacing = delimiter_spacing; + } + pub fn set_bracket_same_line(&mut self, bracket_same_line: BracketSameLine) { self.bracket_same_line = bracket_same_line; } @@ -371,6 +384,10 @@ impl JsFormatOptions { self.bracket_spacing } + pub fn delimiter_spacing(&self) -> DelimiterSpacing { + self.delimiter_spacing + } + pub fn bracket_same_line(&self) -> BracketSameLine { self.bracket_same_line } @@ -459,6 +476,7 @@ impl fmt::Display for JsFormatOptions { writeln!(f, "Semicolons: {}", self.semicolons)?; writeln!(f, "Arrow parentheses: {}", self.arrow_parentheses)?; writeln!(f, "Bracket spacing: {}", self.bracket_spacing.value())?; + writeln!(f, "Delimiter spacing: {}", self.delimiter_spacing.value())?; writeln!(f, "Bracket same line: {}", self.bracket_same_line.value())?; writeln!(f, "Attribute Position: {}", self.attribute_position)?; writeln!(f, "Expand lists: {}", self.expand)?; diff --git a/crates/biome_js_formatter/src/js/assignments/array_assignment_pattern.rs b/crates/biome_js_formatter/src/js/assignments/array_assignment_pattern.rs index b5f16ca4a65b..ea39fdf965ff 100644 --- a/crates/biome_js_formatter/src/js/assignments/array_assignment_pattern.rs +++ b/crates/biome_js_formatter/src/js/assignments/array_assignment_pattern.rs @@ -23,7 +23,14 @@ impl FormatNodeRule for FormatJsArrayAssignmentPattern [format_dangling_comments(node.syntax()).with_block_indent()] )?; } else { - write!(f, [group(&soft_block_indent(&elements.format()))])?; + let should_insert_space_around_brackets = f.options().delimiter_spacing().value(); + write!( + f, + [group(&soft_block_indent_with_maybe_space( + &elements.format(), + should_insert_space_around_brackets + ))] + )?; } write!(f, [r_brack_token.format()]) diff --git a/crates/biome_js_formatter/src/js/auxiliary/template_element.rs b/crates/biome_js_formatter/src/js/auxiliary/template_element.rs index b20da7908702..65e399be2f8b 100644 --- a/crates/biome_js_formatter/src/js/auxiliary/template_element.rs +++ b/crates/biome_js_formatter/src/js/auxiliary/template_element.rs @@ -172,15 +172,31 @@ impl Format for FormatTemplateElement { } }); - write!( - f, - [group(&format_args![ - self.element.dollar_curly_token().format(), - format_indented, - line_suffix_boundary(), - self.element.r_curly_token().format() - ])] - ) + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write!( + f, + [group(&format_args![ + self.element.dollar_curly_token().format(), + space(), + format_indented, + line_suffix_boundary(), + space(), + self.element.r_curly_token().format() + ])] + ) + } else { + write!( + f, + [group(&format_args![ + self.element.dollar_curly_token().format(), + format_indented, + line_suffix_boundary(), + self.element.r_curly_token().format() + ])] + ) + } } } diff --git a/crates/biome_js_formatter/src/js/bindings/array_binding_pattern.rs b/crates/biome_js_formatter/src/js/bindings/array_binding_pattern.rs index 9922ece47c19..24ca0f2593cf 100644 --- a/crates/biome_js_formatter/src/js/bindings/array_binding_pattern.rs +++ b/crates/biome_js_formatter/src/js/bindings/array_binding_pattern.rs @@ -23,7 +23,14 @@ impl FormatNodeRule for FormatJsArrayBindingPattern { [format_dangling_comments(node.syntax()).with_block_indent()] )?; } else { - write!(f, [group(&soft_block_indent(&elements.format()))])?; + let should_insert_space_around_brackets = f.options().delimiter_spacing().value(); + write!( + f, + [group(&soft_block_indent_with_maybe_space( + &elements.format(), + should_insert_space_around_brackets + ))] + )?; } write!(f, [r_brack_token.format()]) diff --git a/crates/biome_js_formatter/src/js/bindings/parameters.rs b/crates/biome_js_formatter/src/js/bindings/parameters.rs index 9dc4f896da89..88897f3563e7 100644 --- a/crates/biome_js_formatter/src/js/bindings/parameters.rs +++ b/crates/biome_js_formatter/src/js/bindings/parameters.rs @@ -65,8 +65,12 @@ impl Format for FormatAnyJsParameters { ) } ParameterLayout::Hug => { + let should_insert_space_around_delimiters = f.options().delimiter_spacing().value(); if !parentheses_not_needed { write!(f, [l_paren_token.format()])?; + if should_insert_space_around_delimiters { + write!(f, [space()])?; + } } else { write!(f, [format_removed(&l_paren_token)])?; } @@ -80,6 +84,9 @@ impl Format for FormatAnyJsParameters { )?; if !parentheses_not_needed { + if should_insert_space_around_delimiters { + write!(f, [space()])?; + } write!(f, [&r_paren_token.format()])?; } else { write!(f, [format_removed(&r_paren_token)])?; @@ -88,6 +95,7 @@ impl Format for FormatAnyJsParameters { Ok(()) } ParameterLayout::Default => { + let should_insert_space_around_delimiters = f.options().delimiter_spacing().value(); if !parentheses_not_needed { write!(f, [l_paren_token.format()])?; } else { @@ -96,10 +104,10 @@ impl Format for FormatAnyJsParameters { write!( f, - [soft_block_indent(&FormatJsAnyParameterList::with_layout( - &list, - ParameterLayout::Default, - ))] + [soft_block_indent_with_maybe_space( + &FormatJsAnyParameterList::with_layout(&list, ParameterLayout::Default,), + should_insert_space_around_delimiters + )] )?; if !parentheses_not_needed { diff --git a/crates/biome_js_formatter/src/js/classes/setter_class_member.rs b/crates/biome_js_formatter/src/js/classes/setter_class_member.rs index 9a9d434e0d09..c1c1cfc4ba60 100644 --- a/crates/biome_js_formatter/src/js/classes/setter_class_member.rs +++ b/crates/biome_js_formatter/src/js/classes/setter_class_member.rs @@ -20,21 +20,44 @@ impl FormatNodeRule for FormatJsSetterClassMember { body, } = node.as_fields(); - write![ - f, - [ - modifiers.format(), - space(), - set_token.format(), - space(), - name.format(), - l_paren_token.format(), - parameter.format(), - comma_token.format(), - r_paren_token.format(), - space(), - body.format(), + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write![ + f, + [ + modifiers.format(), + space(), + set_token.format(), + space(), + name.format(), + l_paren_token.format(), + space(), + parameter.format(), + comma_token.format(), + space(), + r_paren_token.format(), + space(), + body.format(), + ] + ] + } else { + write![ + f, + [ + modifiers.format(), + space(), + set_token.format(), + space(), + name.format(), + l_paren_token.format(), + parameter.format(), + comma_token.format(), + r_paren_token.format(), + space(), + body.format(), + ] ] - ] + } } } diff --git a/crates/biome_js_formatter/src/js/declarations/catch_declaration.rs b/crates/biome_js_formatter/src/js/declarations/catch_declaration.rs index 897b3b593f03..a639964ff159 100644 --- a/crates/biome_js_formatter/src/js/declarations/catch_declaration.rs +++ b/crates/biome_js_formatter/src/js/declarations/catch_declaration.rs @@ -35,6 +35,8 @@ impl FormatNodeRule for FormatJsCatchDeclaration { .iter() .any(|comment| comment.lines_before() > 0 || comment.kind().is_line()); + let should_insert_space_around_delimiters = f.options().delimiter_spacing().value(); + if leading_comment_with_break || trailing_comment_with_break { write!( f, @@ -45,15 +47,19 @@ impl FormatNodeRule for FormatJsCatchDeclaration { ] ) } else { - write!( - f, - [ - l_paren_token.format(), - binding.format(), - type_annotation.format(), - r_paren_token.format() - ] - ) + write!(f, [l_paren_token.format()])?; + + if should_insert_space_around_delimiters { + write!(f, [space()])?; + } + + write!(f, [binding.format(), type_annotation.format()])?; + + if should_insert_space_around_delimiters { + write!(f, [space()])?; + } + + write!(f, [r_paren_token.format()]) } } } diff --git a/crates/biome_js_formatter/src/js/expressions/array_expression.rs b/crates/biome_js_formatter/src/js/expressions/array_expression.rs index 87b019c39deb..bc0a0e6237b4 100644 --- a/crates/biome_js_formatter/src/js/expressions/array_expression.rs +++ b/crates/biome_js_formatter/src/js/expressions/array_expression.rs @@ -46,15 +46,19 @@ impl FormatNodeRule for FormatJsArrayExpression { let should_expand = (!self.options.is_force_flat_mode && should_break(&elements)?) || f.options().expand() == Expand::Always; + let should_insert_space_around_brackets = f.options().delimiter_spacing().value(); let elements = elements.format().with_options(Some(group_id)); write!( f, [ l_brack_token.format(), - group(&soft_block_indent(&elements)) - .with_group_id(Some(group_id)) - .should_expand(should_expand), + group(&soft_block_indent_with_maybe_space( + &elements, + should_insert_space_around_brackets + )) + .with_group_id(Some(group_id)) + .should_expand(should_expand), r_brack_token.format() ] ) diff --git a/crates/biome_js_formatter/src/js/expressions/arrow_function_expression.rs b/crates/biome_js_formatter/src/js/expressions/arrow_function_expression.rs index 192419f773ec..0b0374a83851 100644 --- a/crates/biome_js_formatter/src/js/expressions/arrow_function_expression.rs +++ b/crates/biome_js_formatter/src/js/expressions/arrow_function_expression.rs @@ -102,6 +102,7 @@ impl FormatNodeRule for FormatJsArrowFunctionExpressi } AnyJsExpression(JsSequenceExpression(sequence)) => { let has_comment = f.context().comments().has_comments(sequence.syntax()); + let should_insert_space = f.options().delimiter_spacing().value(); if has_comment { return write!( f, @@ -123,7 +124,10 @@ impl FormatNodeRule for FormatJsArrowFunctionExpressi group(&format_args![ space(), token("("), - soft_block_indent(&format_body), + soft_block_indent_with_maybe_space( + &format_body, + should_insert_space + ), token(")") ]) ])] @@ -147,6 +151,8 @@ impl FormatNodeRule for FormatJsArrowFunctionExpressi // if it's inside a JSXExpression (e.g. an attribute) we should align the expression's closing } with the line with the opening {. || matches!(node.syntax().parent().kind(), Some(JsSyntaxKind::JSX_EXPRESSION_CHILD | JsSyntaxKind::JSX_EXPRESSION_ATTRIBUTE_VALUE))) && !f.context().comments().has_comments(node.syntax()); + let should_insert_space_for_parens = + should_add_parens && f.options().delimiter_spacing().value(); if body_is_condition_type { write!( f, @@ -157,9 +163,15 @@ impl FormatNodeRule for FormatJsArrowFunctionExpressi if should_add_parens { write!(f, [if_group_fits_on_line(&token("("))])?; } + if should_insert_space_for_parens { + write!(f, [if_group_fits_on_line(&space())])?; + } write!(f, [format_body])?; + if should_insert_space_for_parens { + write!(f, [if_group_fits_on_line(&space())])?; + } if should_add_parens { write!(f, [if_group_fits_on_line(&token(")"))])?; } @@ -182,9 +194,15 @@ impl FormatNodeRule for FormatJsArrowFunctionExpressi if should_add_parens { write!(f, [if_group_fits_on_line(&token("("))])?; } + if should_insert_space_for_parens { + write!(f, [if_group_fits_on_line(&space())])?; + } write!(f, [format_body])?; + if should_insert_space_for_parens { + write!(f, [if_group_fits_on_line(&space())])?; + } if should_add_parens { write!(f, [if_group_fits_on_line(&token(")"))])?; } @@ -251,9 +269,13 @@ fn format_signature( let should_hug = is_test_call_argument(arrow.syntax())? || is_first_or_last_call_argument; let parentheses_not_needed = can_avoid_parentheses(arrow, f); + let should_insert_space = f.options().delimiter_spacing().value(); if !parentheses_not_needed { write!(f, [token("(")])?; + if should_insert_space { + write!(f, [space()])?; + } } if should_hug || parentheses_not_needed { @@ -261,14 +283,17 @@ fn format_signature( } else { write!( f, - [&soft_block_indent(&format_args![ - binding.format(), - FormatTrailingCommas::All - ])] + [&soft_block_indent_with_maybe_space( + &format_args![binding.format(), FormatTrailingCommas::All], + should_insert_space + )] )? } if !parentheses_not_needed { + if should_insert_space { + write!(f, [space()])?; + } write!(f, [token(")")])?; } } @@ -641,11 +666,12 @@ impl Format for ArrowChain { if f.context().comments().has_comments(sequence.syntax()) ); - let format_tail_body_inner = format_with(|f| { + let format_tail_body_inner = format_with(|f: &mut JsFormatter| { let format_tail_body = FormatMaybeCachedFunctionBody { body: &tail_body, mode: self.options.body_cache_mode, }; + let should_insert_space = f.options().delimiter_spacing().value(); // Ensure that the parens of sequence expressions end up on their own line if the // body breaks @@ -668,7 +694,10 @@ impl Format for ArrowChain { f, [group(&format_args![ token("("), - soft_block_indent(&format_tail_body), + soft_block_indent_with_maybe_space( + &format_tail_body, + should_insert_space + ), token(")") ])] )?; diff --git a/crates/biome_js_formatter/src/js/expressions/call_arguments.rs b/crates/biome_js_formatter/src/js/expressions/call_arguments.rs index 30f02201060e..bca994ad61ef 100644 --- a/crates/biome_js_formatter/src/js/expressions/call_arguments.rs +++ b/crates/biome_js_formatter/src/js/expressions/call_arguments.rs @@ -71,17 +71,25 @@ impl FormatNodeRule for FormatJsCallArguments { || is_react_hook_with_deps_array(node, f.comments()) || (is_test_call? && is_first_arg_string_literal_or_template) { + let should_insert_space = f.options().delimiter_spacing().value(); return write!( f, [ l_paren_token.format(), format_with(|f| { + if should_insert_space { + write!(f, [space()])?; + } f.join_with(space()) .entries( args.format_separated(",") .with_trailing_separator(TrailingSeparator::Omit), ) - .finish() + .finish()?; + if should_insert_space { + write!(f, [space()])?; + } + Ok(()) }), r_paren_token.format() ] @@ -108,6 +116,8 @@ impl FormatNodeRule for FormatJsCallArguments { }) .collect(); + let should_insert_space = f.options().delimiter_spacing().value(); + if has_empty_line || is_function_composition_args(node) { return write!( f, @@ -117,20 +127,25 @@ impl FormatNodeRule for FormatJsCallArguments { r_paren: &r_paren_token.format(), node, expand: true, + should_insert_space, }] ); } if let Some(group_layout) = arguments_grouped_layout(&args, f.comments()) { - write_grouped_arguments(node, arguments, group_layout, f) + write_grouped_arguments(node, arguments, group_layout, should_insert_space, f) } else if is_long_curried_call(call_expression.as_ref()) { + // For the "long" call in a curried chain (the one with more arguments), + // use delimiter spacing. The curried continuation (outer call with fewer args) + // is handled by the `is_curried_continuation` check above. write!( f, [ l_paren_token.format(), - soft_block_indent(&format_once(|f| { - write_arguments_multi_line(arguments.iter(), f) - })), + soft_block_indent_with_maybe_space( + &format_once(|f| { write_arguments_multi_line(arguments.iter(), f) }), + should_insert_space + ), r_paren_token.format(), ] ) @@ -143,6 +158,7 @@ impl FormatNodeRule for FormatJsCallArguments { r_paren: &r_paren_token.format(), node, expand: false, + should_insert_space, }] ) } @@ -333,6 +349,7 @@ fn write_grouped_arguments( call_arguments: &JsCallArguments, mut arguments: Vec, group_layout: GroupedCallArgumentLayout, + should_insert_space: bool, f: &mut JsFormatter, ) -> FormatResult<()> { let l_paren_token = call_arguments.l_paren_token(); @@ -364,6 +381,7 @@ fn write_grouped_arguments( r_paren: &r_paren_token.format(), node: call_arguments, expand: true, + should_insert_space, }] ); } @@ -406,6 +424,7 @@ fn write_grouped_arguments( r_paren: &r_paren, node: call_arguments, expand: true, + should_insert_space, }] )?; buffer.write_element(FormatElement::Tag(Tag::EndBestFittingEntry))?; @@ -444,8 +463,41 @@ fn write_grouped_arguments( }) .collect::>(); - // Write the most flat variant with the first or last argument grouped. - let most_flat = { + // Write flat variant WITH delimiter spacing (tried first if should_insert_space is true) + let most_flat_with_spaces = if should_insert_space { + let snapshot = f.state_snapshot(); + let mut buffer = VecBuffer::new(f.state_mut()); + buffer.write_element(FormatElement::Tag(Tag::StartBestFittingEntry))?; + + let result = write!( + buffer, + [ + l_paren, + format_with(|f| { + write!(f, [space()])?; + f.join_with(soft_line_break_or_space()) + .entries(grouped.iter()) + .finish()?; + write!(f, [space()]) + }), + r_paren + ] + ); + + if matches!(result, Err(FormatError::PoorLayout)) { + drop(buffer); + f.restore_state_snapshot(snapshot); + None + } else { + buffer.write_element(FormatElement::Tag(Tag::EndBestFittingEntry))?; + Some(buffer.into_vec()) + } + } else { + None + }; + + // Write flat variant WITHOUT delimiter spacing (fallback for boundary cases) + let most_flat_no_spaces = { let snapshot = f.state_snapshot(); let mut buffer = VecBuffer::new(f.state_mut()); buffer.write_element(FormatElement::Tag(Tag::StartBestFittingEntry))?; @@ -486,8 +538,48 @@ fn write_grouped_arguments( buffer.into_vec() }; - // Write the second variant that forces the group of the first/last argument to expand. - let middle_variant = { + // Write middle variant WITH delimiter spacing (tried first if should_insert_space is true) + let middle_variant_with_spaces = if should_insert_space { + let mut buffer = VecBuffer::new(f.state_mut()); + + buffer.write_element(FormatElement::Tag(Tag::StartBestFittingEntry))?; + + write!( + buffer, + [ + l_paren, + format_with(|f| { + write!(f, [space()])?; + let mut joiner = f.join_with(soft_line_break_or_space()); + + match group_layout { + GroupedCallArgumentLayout::GroupedFirstArgument => { + joiner.entry(&group(&grouped[0]).should_expand(true)); + joiner.entries(&grouped[1..]).finish()?; + } + GroupedCallArgumentLayout::GroupedLastArgument => { + let last_index = grouped.len() - 1; + joiner.entries(&grouped[..last_index]); + joiner + .entry(&group(&grouped[last_index]).should_expand(true)) + .finish()?; + } + } + write!(f, [space()]) + }), + r_paren + ] + )?; + + buffer.write_element(FormatElement::Tag(Tag::EndBestFittingEntry))?; + + Some(buffer.into_vec()) + } else { + None + }; + + // Write middle variant WITHOUT delimiter spacing (fallback for boundary cases) + let middle_variant_no_spaces = { let mut buffer = VecBuffer::new(f.state_mut()); buffer.write_element(FormatElement::Tag(Tag::StartBestFittingEntry))?; @@ -522,16 +614,43 @@ fn write_grouped_arguments( buffer.into_vec() }; - // If the grouped content breaks, then we can skip the most_flat variant, - // since we already know that it won't be fitting on a single line. + // If the grouped content breaks, then we can skip the most_flat variants, + // since we already know that they won't be fitting on a single line. let variants = if grouped_breaks { write!(f, [expand_parent()])?; - let mut variants = middle_variant; + // Build variants in order of preference: + // 1. Middle variant with delimiter spacing (if available) + // 2. Middle variant without delimiter spacing (only if with-spaces had PoorLayout) + // 3. Most expanded + let mut variants = Vec::new(); + if let Some(middle_with_spaces) = middle_variant_with_spaces { + variants.extend(middle_with_spaces); + } else { + // Only use no-spaces variant if with-spaces variant had a PoorLayout error + variants.extend(middle_variant_no_spaces); + } variants.extend(most_expanded); variants } else { - let mut variants = most_flat; - variants.extend(middle_variant); + // Build variants in order of preference: + // 1. Flat with delimiter spacing (if available) + // 2. Flat without delimiter spacing (only if with-spaces had PoorLayout) + // 3. Middle variant with delimiter spacing (if available) + // 4. Middle variant without delimiter spacing (only if with-spaces had PoorLayout) + // 5. Most expanded + let mut variants = Vec::new(); + if let Some(flat_with_spaces) = most_flat_with_spaces { + variants.extend(flat_with_spaces); + } else { + // Only use no-spaces variant if with-spaces variant had a PoorLayout error + variants.extend(most_flat_no_spaces); + } + if let Some(middle_with_spaces) = middle_variant_with_spaces { + variants.extend(middle_with_spaces); + } else { + // Only use no-spaces variant if with-spaces variant had a PoorLayout error + variants.extend(middle_variant_no_spaces); + } variants.extend(most_expanded); variants }; @@ -726,6 +845,7 @@ struct FormatAllArgsBrokenOut<'a> { r_paren: &'a dyn Format, expand: bool, node: &'a JsCallArguments, + should_insert_space: bool, } impl Format for FormatAllArgsBrokenOut<'_> { @@ -736,23 +856,26 @@ impl Format for FormatAllArgsBrokenOut<'_> { f, [group(&format_args![ self.l_paren, - soft_block_indent(&format_with(|f| { - for (index, entry) in self.args.iter().enumerate() { - if index > 0 { - match entry.leading_lines() { - 0 | 1 => write!(f, [soft_line_break_or_space()])?, - _ => write!(f, [empty_line()])?, + soft_block_indent_with_maybe_space( + &format_with(|f| { + for (index, entry) in self.args.iter().enumerate() { + if index > 0 { + match entry.leading_lines() { + 0 | 1 => write!(f, [soft_line_break_or_space()])?, + _ => write!(f, [empty_line()])?, + } } - } - write!(f, [entry])?; - } + write!(f, [entry])?; + } - if !is_inside_import { - write!(f, [FormatTrailingCommas::All])?; - } - Ok(()) - })), + if !is_inside_import { + write!(f, [FormatTrailingCommas::All])?; + } + Ok(()) + }), + self.should_insert_space + ), self.r_paren, ]) .should_expand(self.expand)] diff --git a/crates/biome_js_formatter/src/js/expressions/computed_member_expression.rs b/crates/biome_js_formatter/src/js/expressions/computed_member_expression.rs index 07c0a8d05260..93de5a98a13e 100644 --- a/crates/biome_js_formatter/src/js/expressions/computed_member_expression.rs +++ b/crates/biome_js_formatter/src/js/expressions/computed_member_expression.rs @@ -42,19 +42,35 @@ impl<'a> FormatComputedMemberLookup<'a> { impl Format for FormatComputedMemberLookup<'_> { fn fmt(&self, f: &mut Formatter) -> FormatResult<()> { + let should_insert_space = f.options().delimiter_spacing().value(); + match self.0.member()? { AnyJsExpression::AnyJsLiteralExpression( AnyJsLiteralExpression::JsNumberLiteralExpression(literal), ) => { - write!( - f, - [ - self.0.optional_chain_token().format(), - self.0.l_brack_token().format(), - literal.format(), - self.0.r_brack_token().format() - ] - ) + if should_insert_space { + write!( + f, + [ + self.0.optional_chain_token().format(), + self.0.l_brack_token().format(), + space(), + literal.format(), + space(), + self.0.r_brack_token().format() + ] + ) + } else { + write!( + f, + [ + self.0.optional_chain_token().format(), + self.0.l_brack_token().format(), + literal.format(), + self.0.r_brack_token().format() + ] + ) + } } member => { write![ @@ -62,7 +78,7 @@ impl Format for FormatComputedMemberLookup<'_> { [group(&format_args![ self.0.optional_chain_token().format(), self.0.l_brack_token().format(), - soft_block_indent(&member.format()), + soft_block_indent_with_maybe_space(&member.format(), should_insert_space), self.0.r_brack_token().format() ])] ] diff --git a/crates/biome_js_formatter/src/js/expressions/parenthesized_expression.rs b/crates/biome_js_formatter/src/js/expressions/parenthesized_expression.rs index a7dd4f01c37c..3bdf9340b246 100644 --- a/crates/biome_js_formatter/src/js/expressions/parenthesized_expression.rs +++ b/crates/biome_js_formatter/src/js/expressions/parenthesized_expression.rs @@ -24,6 +24,7 @@ impl FormatNodeRule for FormatJsParenthesizedExpressi let l_paren_token = l_paren_token?; let expression = expression?; let comments = f.context().comments(); + let should_insert_space = f.options().delimiter_spacing().value(); let should_hug = !comments.has_comments(expression.syntax()) && (matches!( @@ -32,20 +33,33 @@ impl FormatNodeRule for FormatJsParenthesizedExpressi )); if should_hug { - write!( - f, - [ - l_paren_token.format(), - expression.format(), - r_paren_token.format() - ] - ) + if should_insert_space { + write!( + f, + [ + l_paren_token.format(), + space(), + expression.format(), + space(), + r_paren_token.format() + ] + ) + } else { + write!( + f, + [ + l_paren_token.format(), + expression.format(), + r_paren_token.format() + ] + ) + } } else { write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&expression.format()), + soft_block_indent_with_maybe_space(&expression.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_js_formatter/src/js/expressions/unary_expression.rs b/crates/biome_js_formatter/src/js/expressions/unary_expression.rs index 5444bc428d71..51ae311ecdaa 100644 --- a/crates/biome_js_formatter/src/js/expressions/unary_expression.rs +++ b/crates/biome_js_formatter/src/js/expressions/unary_expression.rs @@ -1,8 +1,8 @@ use crate::prelude::*; use biome_formatter::{format_args, write}; -use biome_js_syntax::JsUnaryExpression; use biome_js_syntax::parentheses::NeedsParentheses; +use biome_js_syntax::{AnyJsExpression, JsUnaryExpression}; use biome_js_syntax::{JsUnaryExpressionFields, JsUnaryOperator}; #[derive(Debug, Clone, Default)] @@ -30,17 +30,46 @@ impl FormatNodeRule for FormatJsUnaryExpression { write!(f, [space()])?; } + // Add delimiter spacing after logical not operator (!) when enabled + // Only add space after the LAST ! in a chain (e.g., !! a, not ! ! a) + let should_insert_space = f.options().delimiter_spacing().value(); + let is_logical_not = operation == JsUnaryOperator::LogicalNot; + + // Check if the argument is also a logical not - if so, don't add space here + let argument_is_logical_not = matches!( + &argument, + AnyJsExpression::JsUnaryExpression(unary) if unary.operator() == Ok(JsUnaryOperator::LogicalNot) + ); + + // Only add delimiter spacing if this is logical not AND arg is NOT another logical not + let add_delimiter_space = is_logical_not && should_insert_space && !argument_is_logical_not; + if f.comments().has_comments(argument.syntax()) && !f.comments().is_suppressed(argument.syntax()) { - write!( - f, - [group(&format_args![ - token("("), - soft_block_indent(&argument.format()), - token(")") - ])] - ) + if add_delimiter_space { + write!( + f, + [group(&format_args![ + space(), + token("("), + soft_block_indent_with_maybe_space(&argument.format(), should_insert_space), + token(")") + ])] + ) + } else { + write!( + f, + [group(&format_args![ + token("("), + soft_block_indent(&argument.format()), + token(")") + ])] + ) + } + } else if add_delimiter_space { + // Add space after logical not operator + write![f, [space(), argument.format()]] } else { write![f, [argument.format()]] } diff --git a/crates/biome_js_formatter/src/js/objects/computed_member_name.rs b/crates/biome_js_formatter/src/js/objects/computed_member_name.rs index 567ebc074b6e..ed04577e9611 100644 --- a/crates/biome_js_formatter/src/js/objects/computed_member_name.rs +++ b/crates/biome_js_formatter/src/js/objects/computed_member_name.rs @@ -15,13 +15,28 @@ impl FormatNodeRule for FormatJsComputedMemberName { r_brack_token, } = node.as_fields(); - write![ - f, - [ - l_brack_token.format(), - expression.format(), - r_brack_token.format(), + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write![ + f, + [ + l_brack_token.format(), + space(), + expression.format(), + space(), + r_brack_token.format(), + ] + ] + } else { + write![ + f, + [ + l_brack_token.format(), + expression.format(), + r_brack_token.format(), + ] ] - ] + } } } diff --git a/crates/biome_js_formatter/src/js/objects/setter_object_member.rs b/crates/biome_js_formatter/src/js/objects/setter_object_member.rs index 6f1944de4436..0dcc9a68d4fd 100644 --- a/crates/biome_js_formatter/src/js/objects/setter_object_member.rs +++ b/crates/biome_js_formatter/src/js/objects/setter_object_member.rs @@ -19,19 +19,40 @@ impl FormatNodeRule for FormatJsSetterObjectMember { body, } = node.as_fields(); - write![ - f, - [ - set_token.format(), - space(), - name.format(), - l_paren_token.format(), - parameter.format(), - comma_token.format(), - r_paren_token.format(), - space(), - body.format(), + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write![ + f, + [ + set_token.format(), + space(), + name.format(), + l_paren_token.format(), + space(), + parameter.format(), + comma_token.format(), + space(), + r_paren_token.format(), + space(), + body.format(), + ] + ] + } else { + write![ + f, + [ + set_token.format(), + space(), + name.format(), + l_paren_token.format(), + parameter.format(), + comma_token.format(), + r_paren_token.format(), + space(), + body.format(), + ] ] - ] + } } } diff --git a/crates/biome_js_formatter/src/js/statements/do_while_statement.rs b/crates/biome_js_formatter/src/js/statements/do_while_statement.rs index 8413fcaf31b7..f41cc9435838 100644 --- a/crates/biome_js_formatter/src/js/statements/do_while_statement.rs +++ b/crates/biome_js_formatter/src/js/statements/do_while_statement.rs @@ -38,13 +38,18 @@ impl FormatNodeRule for FormatJsDoWhileStatement { write!(f, [hard_line_break()])?; } + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ while_token.format(), space(), l_paren_token.format(), - group(&soft_block_indent(&test.format())), + group(&soft_block_indent_with_maybe_space( + &test.format(), + should_insert_space + )), r_paren_token.format(), FormatStatementSemicolon::new(semicolon_token.as_ref()) ] diff --git a/crates/biome_js_formatter/src/js/statements/for_in_statement.rs b/crates/biome_js_formatter/src/js/statements/for_in_statement.rs index 455ab8084a1f..d8afee8a03f7 100644 --- a/crates/biome_js_formatter/src/js/statements/for_in_statement.rs +++ b/crates/biome_js_formatter/src/js/statements/for_in_statement.rs @@ -1,7 +1,7 @@ use crate::prelude::*; use crate::utils::FormatStatementBody; -use biome_formatter::{format_args, write}; +use biome_formatter::write; use biome_js_syntax::JsForInStatement; use biome_js_syntax::JsForInStatementFields; @@ -20,25 +20,34 @@ impl FormatNodeRule for FormatJsForInStatement { body, } = node.as_fields(); - let for_token = for_token.format(); - let initializer = initializer.format(); - let in_token = in_token.format(); - let expression = expression.format(); - - write!( - f, - [group(&format_args!( - for_token, - space(), - l_paren_token.format(), - initializer, - space(), - in_token, - space(), - expression, - r_paren_token.format(), - FormatStatementBody::new(&body?) - ))] - ) + let body = body?; + let should_insert_space = f.options().delimiter_spacing().value(); + + let format_inner = format_with(|f| { + write!(f, [for_token.format(), space(), l_paren_token.format()])?; + + if should_insert_space { + write!(f, [space()])?; + } + + write!( + f, + [ + initializer.format(), + space(), + in_token.format(), + space(), + expression.format(), + ] + )?; + + if should_insert_space { + write!(f, [space()])?; + } + + write!(f, [r_paren_token.format(), FormatStatementBody::new(&body)]) + }); + + write!(f, [group(&format_inner)]) } } diff --git a/crates/biome_js_formatter/src/js/statements/for_of_statement.rs b/crates/biome_js_formatter/src/js/statements/for_of_statement.rs index a9e9536d2d48..5725e549e639 100644 --- a/crates/biome_js_formatter/src/js/statements/for_of_statement.rs +++ b/crates/biome_js_formatter/src/js/statements/for_of_statement.rs @@ -23,6 +23,7 @@ impl FormatNodeRule for FormatJsForOfStatement { let body = body?; + let should_insert_space_around_delimiters = f.options().delimiter_spacing().value(); let format_inner = format_with(|f| { write!(f, [for_token.format()])?; @@ -30,20 +31,28 @@ impl FormatNodeRule for FormatJsForOfStatement { write!(f, [space(), await_token.format()])?; } + write!(f, [space(), l_paren_token.format()])?; + + if should_insert_space_around_delimiters { + write!(f, [space()])?; + } + write!( f, [ - space(), - l_paren_token.format(), initializer.format(), space(), of_token.format(), space(), expression.format(), - r_paren_token.format(), - FormatStatementBody::new(&body) ] - ) + )?; + + if should_insert_space_around_delimiters { + write!(f, [space()])?; + } + + write!(f, [r_paren_token.format(), FormatStatementBody::new(&body)]) }); write!(f, [group(&format_inner)]) diff --git a/crates/biome_js_formatter/src/js/statements/for_statement.rs b/crates/biome_js_formatter/src/js/statements/for_statement.rs index 6512dbcbd331..ea972b71256f 100644 --- a/crates/biome_js_formatter/src/js/statements/for_statement.rs +++ b/crates/biome_js_formatter/src/js/statements/for_statement.rs @@ -56,6 +56,8 @@ impl FormatNodeRule for FormatJsForStatement { ); } + let should_insert_space = f.options().delimiter_spacing().value(); + let format_inner = format_with(|f| { write!( f, @@ -63,15 +65,18 @@ impl FormatNodeRule for FormatJsForStatement { for_token.format(), space(), l_paren_token.format(), - group(&soft_block_indent(&format_args![ - initializer.format(), - first_semi_token.format(), - soft_line_break_or_space(), - test.format(), - second_semi_token.format(), - soft_line_break_or_space(), - update.format() - ])), + group(&soft_block_indent_with_maybe_space( + &format_args![ + initializer.format(), + first_semi_token.format(), + soft_line_break_or_space(), + test.format(), + second_semi_token.format(), + soft_line_break_or_space(), + update.format() + ], + should_insert_space + )), r_paren_token.format(), format_body ] diff --git a/crates/biome_js_formatter/src/js/statements/if_statement.rs b/crates/biome_js_formatter/src/js/statements/if_statement.rs index 43d63ce54a1a..73303e50ed69 100644 --- a/crates/biome_js_formatter/src/js/statements/if_statement.rs +++ b/crates/biome_js_formatter/src/js/statements/if_statement.rs @@ -25,13 +25,18 @@ impl FormatNodeRule for FormatJsIfStatement { let r_paren_token = r_paren_token?; let consequent = consequent?; + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ if_token.format(), space(), l_paren_token.format(), - group(&soft_block_indent(&test.format())), + group(&soft_block_indent_with_maybe_space( + &test.format(), + should_insert_space + )), r_paren_token.format(), FormatStatementBody::new(&consequent), ]),] diff --git a/crates/biome_js_formatter/src/js/statements/switch_statement.rs b/crates/biome_js_formatter/src/js/statements/switch_statement.rs index 534d0b1fecca..86e0970dd0d7 100644 --- a/crates/biome_js_formatter/src/js/statements/switch_statement.rs +++ b/crates/biome_js_formatter/src/js/statements/switch_statement.rs @@ -29,13 +29,18 @@ impl FormatNodeRule for FormatJsSwitchStatement { Ok(()) }); + let should_insert_space = f.options().delimiter_spacing().value(); + write![ f, [ switch_token.format(), space(), l_paren_token.format(), - group(&soft_block_indent(&discriminant.format())), + group(&soft_block_indent_with_maybe_space( + &discriminant.format(), + should_insert_space + )), r_paren_token.format(), space(), l_curly_token.format(), diff --git a/crates/biome_js_formatter/src/js/statements/while_statement.rs b/crates/biome_js_formatter/src/js/statements/while_statement.rs index 8089c97e618b..2a485c37e198 100644 --- a/crates/biome_js_formatter/src/js/statements/while_statement.rs +++ b/crates/biome_js_formatter/src/js/statements/while_statement.rs @@ -18,13 +18,18 @@ impl FormatNodeRule for FormatJsWhileStatement { body, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ while_token.format(), space(), l_paren_token.format(), - group(&soft_block_indent(&test.format())), + group(&soft_block_indent_with_maybe_space( + &test.format(), + should_insert_space + )), r_paren_token.format(), FormatStatementBody::new(&body?) ])] diff --git a/crates/biome_js_formatter/src/jsx/attribute/expression_attribute_value.rs b/crates/biome_js_formatter/src/jsx/attribute/expression_attribute_value.rs index f366087b4935..a06eea662e70 100644 --- a/crates/biome_js_formatter/src/jsx/attribute/expression_attribute_value.rs +++ b/crates/biome_js_formatter/src/jsx/attribute/expression_attribute_value.rs @@ -21,25 +21,40 @@ impl FormatNodeRule for FormatJsxExpressionAttribut } = node.as_fields(); let expression = expression?; + let delimiter_spacing = f.options().delimiter_spacing().value(); let should_inline = should_inline_jsx_expression(&expression, f.context().comments()); if should_inline { - write!( - f, - [ - l_curly_token.format(), - expression.format(), - line_suffix_boundary(), - r_curly_token.format() - ] - ) + if delimiter_spacing { + write!( + f, + [ + l_curly_token.format(), + space(), + expression.format(), + space(), + line_suffix_boundary(), + r_curly_token.format() + ] + ) + } else { + write!( + f, + [ + l_curly_token.format(), + expression.format(), + line_suffix_boundary(), + r_curly_token.format() + ] + ) + } } else { write!( f, [group(&format_args![ l_curly_token.format(), - soft_block_indent(&expression.format()), + soft_block_indent_with_maybe_space(&expression.format(), delimiter_spacing), line_suffix_boundary(), r_curly_token.format() ])] diff --git a/crates/biome_js_formatter/src/jsx/attribute/spread_attribute.rs b/crates/biome_js_formatter/src/jsx/attribute/spread_attribute.rs index 5d8ac7247698..008a1e90de12 100644 --- a/crates/biome_js_formatter/src/jsx/attribute/spread_attribute.rs +++ b/crates/biome_js_formatter/src/jsx/attribute/spread_attribute.rs @@ -17,6 +17,8 @@ impl FormatNodeRule for FormatJsxSpreadAttribute { } = node.as_fields(); let argument = argument?; + let delimiter_spacing = f.options().delimiter_spacing().value(); + let format_inner = format_with(|f| { if f.comments().is_suppressed(argument.syntax()) { write!( @@ -32,7 +34,7 @@ impl FormatNodeRule for FormatJsxSpreadAttribute { f, [ format_leading_comments(argument.syntax()), - dotdotdot_token.format() + dotdotdot_token.format(), ] )?; FormatAnyJsExpressionWithoutComments.fmt(&argument, f)?; @@ -41,6 +43,7 @@ impl FormatNodeRule for FormatJsxSpreadAttribute { [ format_dangling_comments(argument.syntax()).with_soft_block_indent(), format_trailing_comments(argument.syntax()), + line_suffix_boundary() ] ) } @@ -51,11 +54,25 @@ impl FormatNodeRule for FormatJsxSpreadAttribute { if f.comments().has_comments(argument.syntax()) && !f.comments().is_suppressed(argument.syntax()) { - write!(f, [soft_block_indent(&format_inner)])?; + if delimiter_spacing { + // With delimiter spacing, try to fit on one line with spaces + write!( + f, + [group(&soft_block_indent_with_maybe_space( + &format_inner, + true + ))] + )?; + } else { + // Without delimiter spacing, always break to multiple lines + write!(f, [soft_block_indent(&format_inner)])?; + } + } else if delimiter_spacing { + write!(f, [space(), format_inner, space()])?; } else { write!(f, [format_inner])?; } - write![f, [r_curly_token.format()]] + write!(f, [r_curly_token.format()]) } } diff --git a/crates/biome_js_formatter/src/jsx/auxiliary/expression_child.rs b/crates/biome_js_formatter/src/jsx/auxiliary/expression_child.rs index 477683616daa..3eca78839c12 100644 --- a/crates/biome_js_formatter/src/jsx/auxiliary/expression_child.rs +++ b/crates/biome_js_formatter/src/jsx/auxiliary/expression_child.rs @@ -17,9 +17,11 @@ impl FormatNodeRule for FormatJsxExpressionChild { r_curly_token, } = node.as_fields(); + let comments = f.context().comments(); + let delimiter_spacing = f.options().delimiter_spacing().value(); + match expression { Some(expression) => { - let comments = f.context().comments(); let is_conditional_or_binary = matches!(expression, AnyJsExpression::JsConditionalExpression(_)) || AnyJsBinaryLikeExpression::can_cast(expression.syntax().kind()); @@ -29,21 +31,38 @@ impl FormatNodeRule for FormatJsxExpressionChild { || should_inline_jsx_expression(&expression, comments)); if should_inline { - write!( - f, - [ - l_curly_token.format(), - expression.format(), - line_suffix_boundary(), - r_curly_token.format() - ] - ) + if delimiter_spacing { + write!( + f, + [ + l_curly_token.format(), + space(), + expression.format(), + space(), + line_suffix_boundary(), + r_curly_token.format() + ] + ) + } else { + write!( + f, + [ + l_curly_token.format(), + expression.format(), + line_suffix_boundary(), + r_curly_token.format() + ] + ) + } } else { write!( f, [group(&format_args![ l_curly_token.format(), - soft_block_indent(&expression.format()), + soft_block_indent_with_maybe_space( + &expression.format(), + delimiter_spacing + ), line_suffix_boundary(), r_curly_token.format() ])] @@ -51,8 +70,7 @@ impl FormatNodeRule for FormatJsxExpressionChild { } } None => { - let has_line_comment = f - .comments() + let has_line_comment = comments .leading_dangling_trailing_comments(node.syntax()) .any(|comment| comment.kind().is_line()); @@ -66,6 +84,11 @@ impl FormatNodeRule for FormatJsxExpressionChild { hard_line_break() ] )?; + } else if delimiter_spacing { + write!( + f, + [space(), format_dangling_comments(node.syntax()), space()] + )?; } else { write!(f, [format_dangling_comments(node.syntax())])?; } diff --git a/crates/biome_js_formatter/src/jsx/auxiliary/spread_child.rs b/crates/biome_js_formatter/src/jsx/auxiliary/spread_child.rs index 02b73317c734..828ad18c23bb 100644 --- a/crates/biome_js_formatter/src/jsx/auxiliary/spread_child.rs +++ b/crates/biome_js_formatter/src/jsx/auxiliary/spread_child.rs @@ -17,6 +17,7 @@ impl FormatNodeRule for FormatJsxSpreadChild { } = node.as_fields(); let expression = expression?; + let delimiter_spacing = f.options().delimiter_spacing().value(); let format_inner = format_with(|f| { if f.comments().is_suppressed(expression.syntax()) { @@ -51,7 +52,21 @@ impl FormatNodeRule for FormatJsxSpreadChild { write!(f, [l_curly_token.format()])?; if f.comments().has_comments(expression.syntax()) { - write!(f, [soft_block_indent(&format_inner)])?; + if delimiter_spacing { + // With delimiter spacing, try to fit on one line with spaces + write!( + f, + [group(&soft_block_indent_with_maybe_space( + &format_inner, + true + ))] + )?; + } else { + // Without delimiter spacing, always break to multiple lines + write!(f, [soft_block_indent(&format_inner)])?; + } + } else if delimiter_spacing { + write!(f, [space(), format_inner, space()])?; } else { write!(f, [format_inner])?; } diff --git a/crates/biome_js_formatter/src/lib.rs b/crates/biome_js_formatter/src/lib.rs index 981c870bb229..ccec0bb0cdaf 100644 --- a/crates/biome_js_formatter/src/lib.rs +++ b/crates/biome_js_formatter/src/lib.rs @@ -373,8 +373,13 @@ where fn fmt_node(&self, node: &N, f: &mut JsFormatter) -> FormatResult<()> { let needs_parentheses = self.needs_parentheses(node); + let should_insert_space = needs_parentheses && f.options().delimiter_spacing().value(); + if needs_parentheses { write!(f, [token("(")])?; + if should_insert_space { + write!(f, [space()])?; + } } if let Some(range) = self.embedded_node_range(node, f) { @@ -394,6 +399,9 @@ where } if needs_parentheses { + if should_insert_space { + write!(f, [space()])?; + } write!(f, [token(")")])?; } diff --git a/crates/biome_js_formatter/src/ts/assignments/type_assertion_assignment.rs b/crates/biome_js_formatter/src/ts/assignments/type_assertion_assignment.rs index 0ed4168d5eb7..6e4ea37a9a09 100644 --- a/crates/biome_js_formatter/src/ts/assignments/type_assertion_assignment.rs +++ b/crates/biome_js_formatter/src/ts/assignments/type_assertion_assignment.rs @@ -22,11 +22,16 @@ impl FormatNodeRule for FormatTsTypeAssertionAssignme assignment, } = node.as_fields(); + let delimiter_spacing = f.options().delimiter_spacing().value(); + write![ f, [ l_angle_token.format(), - group(&soft_block_indent(&ty.format())), + group(&soft_block_indent_with_maybe_space( + &ty.format(), + delimiter_spacing + )), r_angle_token.format(), assignment.format() ] diff --git a/crates/biome_js_formatter/src/ts/auxiliary/index_signature_type_member.rs b/crates/biome_js_formatter/src/ts/auxiliary/index_signature_type_member.rs index df1e1117882a..c62767c6524a 100644 --- a/crates/biome_js_formatter/src/ts/auxiliary/index_signature_type_member.rs +++ b/crates/biome_js_formatter/src/ts/auxiliary/index_signature_type_member.rs @@ -26,17 +26,36 @@ impl FormatNodeRule for FormatTsIndexSignatureTypeMe write!(f, [readonly_token.format(), space()])?; } - write![ - f, - [ - group(&format_args![ - l_brack_token.format(), - soft_block_indent(&format_args![parameter.format()]), - r_brack_token.format(), - ]), - type_annotation.format(), - FormatTypeMemberSeparator::new(separator_token.as_ref()), + let delimiter_spacing = f.options().delimiter_spacing().value(); + + if delimiter_spacing { + write![ + f, + [ + group(&format_args![ + l_brack_token.format(), + space(), + soft_block_indent(&format_args![parameter.format()]), + space(), + r_brack_token.format(), + ]), + type_annotation.format(), + FormatTypeMemberSeparator::new(separator_token.as_ref()), + ] + ] + } else { + write![ + f, + [ + group(&format_args![ + l_brack_token.format(), + soft_block_indent(&format_args![parameter.format()]), + r_brack_token.format(), + ]), + type_annotation.format(), + FormatTypeMemberSeparator::new(separator_token.as_ref()), + ] ] - ] + } } } diff --git a/crates/biome_js_formatter/src/ts/bindings/type_parameters.rs b/crates/biome_js_formatter/src/ts/bindings/type_parameters.rs index c1d8de37ff9c..640887a8ed67 100644 --- a/crates/biome_js_formatter/src/ts/bindings/type_parameters.rs +++ b/crates/biome_js_formatter/src/ts/bindings/type_parameters.rs @@ -30,6 +30,8 @@ impl FormatNodeRule for FormatTsTypeParameters { l_angle_token, } = node.as_fields(); + let delimiter_spacing = f.options().delimiter_spacing().value(); + if items.is_empty() && self.options.is_type_or_interface_decl { write!(f, [l_angle_token.format(), r_angle_token.format()]) } else if items.is_empty() { @@ -39,7 +41,7 @@ impl FormatNodeRule for FormatTsTypeParameters { f, [group(&format_args![ l_angle_token.format(), - soft_block_indent(&items.format()), + soft_block_indent_with_maybe_space(&items.format(), delimiter_spacing), r_angle_token.format() ]) .with_group_id(self.options.group_id)] diff --git a/crates/biome_js_formatter/src/ts/classes/index_signature_class_member.rs b/crates/biome_js_formatter/src/ts/classes/index_signature_class_member.rs index 70e716017d2a..78d2db4756c2 100644 --- a/crates/biome_js_formatter/src/ts/classes/index_signature_class_member.rs +++ b/crates/biome_js_formatter/src/ts/classes/index_signature_class_member.rs @@ -23,17 +23,36 @@ impl FormatNodeRule for FormatTsIndexSignatureClass semicolon_token, } = node.as_fields(); - write!( - f, - [ - modifiers.format(), - space(), - l_brack_token.format(), - parameter.format(), - r_brack_token.format(), - type_annotation.format(), - FormatOptionalSemicolon::new(semicolon_token.as_ref()) - ] - ) + let delimiter_spacing = f.options().delimiter_spacing().value(); + + if delimiter_spacing { + write!( + f, + [ + modifiers.format(), + space(), + l_brack_token.format(), + space(), + parameter.format(), + space(), + r_brack_token.format(), + type_annotation.format(), + FormatOptionalSemicolon::new(semicolon_token.as_ref()) + ] + ) + } else { + write!( + f, + [ + modifiers.format(), + space(), + l_brack_token.format(), + parameter.format(), + r_brack_token.format(), + type_annotation.format(), + FormatOptionalSemicolon::new(semicolon_token.as_ref()) + ] + ) + } } } diff --git a/crates/biome_js_formatter/src/ts/expressions/type_arguments.rs b/crates/biome_js_formatter/src/ts/expressions/type_arguments.rs index 42a47e45f2da..481da320158d 100644 --- a/crates/biome_js_formatter/src/ts/expressions/type_arguments.rs +++ b/crates/biome_js_formatter/src/ts/expressions/type_arguments.rs @@ -75,21 +75,39 @@ impl FormatNodeRule for FormatTsTypeArguments { let should_inline = !is_arrow_function_variables && (ts_type_argument_list.len() == 0 || first_argument_can_be_hugged_or_is_null_type); + let delimiter_spacing = f.options().delimiter_spacing().value(); + if should_inline { - write!( - f, - [ - l_angle_token.format(), - ts_type_argument_list.format(), - r_angle_token.format() - ] - ) + if delimiter_spacing { + write!( + f, + [ + l_angle_token.format(), + space(), + ts_type_argument_list.format(), + space(), + r_angle_token.format() + ] + ) + } else { + write!( + f, + [ + l_angle_token.format(), + ts_type_argument_list.format(), + r_angle_token.format() + ] + ) + } } else { write!( f, [group(&format_args![ l_angle_token.format(), - soft_block_indent(&ts_type_argument_list.format()), + soft_block_indent_with_maybe_space( + &ts_type_argument_list.format(), + delimiter_spacing + ), r_angle_token.format() ])] ) diff --git a/crates/biome_js_formatter/src/ts/expressions/type_assertion_expression.rs b/crates/biome_js_formatter/src/ts/expressions/type_assertion_expression.rs index 3b2e2478bf52..3f900d1a60a9 100644 --- a/crates/biome_js_formatter/src/ts/expressions/type_assertion_expression.rs +++ b/crates/biome_js_formatter/src/ts/expressions/type_assertion_expression.rs @@ -22,6 +22,7 @@ impl FormatNodeRule for FormatTsTypeAssertionExpressi } = node.as_fields(); let expression = expression?; + let delimiter_spacing = f.options().delimiter_spacing().value(); let break_after_cast = !matches!( expression, @@ -33,7 +34,10 @@ impl FormatNodeRule for FormatTsTypeAssertionExpressi f, [ l_angle_token.format(), - group(&soft_block_indent(&ty.format())), + group(&soft_block_indent_with_maybe_space( + &ty.format(), + delimiter_spacing + )), r_angle_token.format(), ] ) diff --git a/crates/biome_js_formatter/src/ts/types/indexed_access_type.rs b/crates/biome_js_formatter/src/ts/types/indexed_access_type.rs index cdb52ccb8124..fbda526ca75b 100644 --- a/crates/biome_js_formatter/src/ts/types/indexed_access_type.rs +++ b/crates/biome_js_formatter/src/ts/types/indexed_access_type.rs @@ -1,6 +1,6 @@ use crate::prelude::*; -use biome_formatter::write; +use biome_formatter::{format_args, write}; use biome_js_syntax::TsIndexedAccessType; use biome_js_syntax::TsIndexedAccessTypeFields; @@ -15,14 +15,32 @@ impl FormatNodeRule for FormatTsIndexedAccessType { index_type, r_brack_token, } = node.as_fields(); - write![ - f, - [ - object_type.format(), - l_brack_token.format(), - index_type.format(), - r_brack_token.format() + + let delimiter_spacing = f.options().delimiter_spacing().value(); + + write!(f, [object_type.format()])?; + + if delimiter_spacing { + // Use if_group_fits_on_line for spaces - spaces when it fits, no spaces when it breaks + write!( + f, + [group(&format_args![ + l_brack_token.format(), + if_group_fits_on_line(&space()), + soft_block_indent(&index_type.format()), + if_group_fits_on_line(&space()), + r_brack_token.format() + ])] + ) + } else { + write![ + f, + [ + l_brack_token.format(), + index_type.format(), + r_brack_token.format() + ] ] - ] + } } } diff --git a/crates/biome_js_formatter/src/ts/types/mapped_type.rs b/crates/biome_js_formatter/src/ts/types/mapped_type.rs index ea47a3679286..769c49a47fd1 100644 --- a/crates/biome_js_formatter/src/ts/types/mapped_type.rs +++ b/crates/biome_js_formatter/src/ts/types/mapped_type.rs @@ -34,6 +34,8 @@ impl FormatNodeRule for FormatTsMappedType { .as_ref() .is_some_and(|annotation| comments.has_leading_comments(annotation.syntax())); + let delimiter_spacing = f.options().delimiter_spacing().value(); + let format_inner = format_with(|f| { write!( f, @@ -46,11 +48,11 @@ impl FormatNodeRule for FormatTsMappedType { write!(f, [readonly_modifier.format(), space()])?; } - write!( - f, - [ - group(&format_args![ - l_brack_token.format(), + // Format the bracket content with optional delimiter spacing + let format_bracket_content = format_with(|f| { + write!( + f, + [ property_name.format(), space(), in_token.format(), @@ -58,14 +60,43 @@ impl FormatNodeRule for FormatTsMappedType { keys_type.format(), as_clause.as_ref().map(|_| space()), as_clause.format(), - r_brack_token.format(), - ]), - optional_modifier.format(), - type_annotation_has_leading_comment.then_some(space()), - mapped_type.format(), - if_group_breaks(&FormatOptionalSemicolon::new(semicolon_token.as_ref())) - ] - ) + ] + ) + }); + + if delimiter_spacing { + write!( + f, + [ + group(&format_args![ + l_brack_token.format(), + space(), + format_bracket_content, + space(), + r_brack_token.format(), + ]), + optional_modifier.format(), + type_annotation_has_leading_comment.then_some(space()), + mapped_type.format(), + if_group_breaks(&FormatOptionalSemicolon::new(semicolon_token.as_ref())) + ] + ) + } else { + write!( + f, + [ + group(&format_args![ + l_brack_token.format(), + format_bracket_content, + r_brack_token.format(), + ]), + optional_modifier.format(), + type_annotation_has_leading_comment.then_some(space()), + mapped_type.format(), + if_group_breaks(&FormatOptionalSemicolon::new(semicolon_token.as_ref())) + ] + ) + } }); let should_insert_space_around_brackets = f.options().bracket_spacing().value(); diff --git a/crates/biome_js_formatter/src/ts/types/tuple_type.rs b/crates/biome_js_formatter/src/ts/types/tuple_type.rs index 21c023a0722c..a07da269a968 100644 --- a/crates/biome_js_formatter/src/ts/types/tuple_type.rs +++ b/crates/biome_js_formatter/src/ts/types/tuple_type.rs @@ -14,6 +14,8 @@ impl FormatNodeRule for FormatTsTupleType { r_brack_token, } = node.as_fields(); + let delimiter_spacing = f.options().delimiter_spacing().value(); + write!(f, [l_brack_token.format(),])?; if elements.is_empty() { @@ -26,7 +28,11 @@ impl FormatNodeRule for FormatTsTupleType { write!( f, - [group(&soft_block_indent(&elements.format())).should_expand(should_expand)] + [group(&soft_block_indent_with_maybe_space( + &elements.format(), + delimiter_spacing + )) + .should_expand(should_expand)] )?; } diff --git a/crates/biome_js_formatter/src/utils/jsx.rs b/crates/biome_js_formatter/src/utils/jsx.rs index cae5860a3d3b..b5bddc8d8d86 100644 --- a/crates/biome_js_formatter/src/utils/jsx.rs +++ b/crates/biome_js_formatter/src/utils/jsx.rs @@ -178,9 +178,12 @@ pub(crate) struct JsxRawSpace; impl Format for JsxRawSpace { fn fmt(&self, f: &mut Formatter) -> FormatResult<()> { - let jsx_space = match f.options().quote_style() { - QuoteStyle::Double => r#"{" "}"#, - QuoteStyle::Single => "{' '}", + let delimiter_spacing = f.options().delimiter_spacing().value(); + let jsx_space = match (f.options().quote_style(), delimiter_spacing) { + (QuoteStyle::Double, false) => r#"{" "}"#, + (QuoteStyle::Double, true) => r#"{ " " }"#, + (QuoteStyle::Single, false) => "{' '}", + (QuoteStyle::Single, true) => "{ ' ' }", }; write!(f, [token(jsx_space)]) From d8302de744f2cfab53c09f9e58d50a57f6c8b1df Mon Sep 17 00:00:00 2001 From: luisherranz Date: Thu, 29 Jan 2026 13:07:51 +0100 Subject: [PATCH 03/19] feat(json-formatter): implement delimiterSpacing for JSON --- crates/biome_json_formatter/src/context.rs | 17 ++++++++++++++++- .../src/json/value/array_value.rs | 9 +++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/crates/biome_json_formatter/src/context.rs b/crates/biome_json_formatter/src/context.rs index 806c74813a7b..019b646ae93e 100644 --- a/crates/biome_json_formatter/src/context.rs +++ b/crates/biome_json_formatter/src/context.rs @@ -2,7 +2,7 @@ use crate::JsonCommentStyle; use crate::comments::{FormatJsonLeadingComment, JsonComments}; use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::separated::TrailingSeparator; -use biome_formatter::{BracketSpacing, Expand, IndentWidth, prelude::*}; +use biome_formatter::{BracketSpacing, DelimiterSpacing, Expand, IndentWidth, prelude::*}; use biome_formatter::{ CstFormatContext, FormatContext, FormatOptions, IndentStyle, LineEnding, LineWidth, TrailingNewline, TransformSourceMap, @@ -68,6 +68,7 @@ pub struct JsonFormatOptions { trailing_commas: TrailingCommas, expand: Expand, bracket_spacing: BracketSpacing, + delimiter_spacing: DelimiterSpacing, /// Whether to add a trailing newline at the end of the file. Defaults to true. trailing_newline: TrailingNewline, /// The kind of file @@ -168,6 +169,11 @@ impl JsonFormatOptions { self } + pub fn with_delimiter_spacing(mut self, delimiter_spacing: DelimiterSpacing) -> Self { + self.delimiter_spacing = delimiter_spacing; + self + } + pub fn with_trailing_newline(mut self, trailing_newline: TrailingNewline) -> Self { self.trailing_newline = trailing_newline; self @@ -197,6 +203,10 @@ impl JsonFormatOptions { self.bracket_spacing = bracket_spacing; } + pub fn set_delimiter_spacing(&mut self, delimiter_spacing: DelimiterSpacing) { + self.delimiter_spacing = delimiter_spacing; + } + /// Set `expand_lists` pub fn set_expand(&mut self, expand: Expand) { self.expand = expand; @@ -210,6 +220,10 @@ impl JsonFormatOptions { self.bracket_spacing } + pub fn delimiter_spacing(&self) -> DelimiterSpacing { + self.delimiter_spacing + } + pub fn expand(&self) -> Expand { self.expand } @@ -261,6 +275,7 @@ impl fmt::Display for JsonFormatOptions { writeln!(f, "Trailing commas: {}", self.trailing_commas)?; writeln!(f, "Expand: {}", self.expand)?; writeln!(f, "Bracket spacing: {}", self.bracket_spacing.value())?; + writeln!(f, "Delimiter spacing: {}", self.delimiter_spacing.value())?; writeln!(f, "Trailing newline: {}", self.trailing_newline.value()) } } diff --git a/crates/biome_json_formatter/src/json/value/array_value.rs b/crates/biome_json_formatter/src/json/value/array_value.rs index 678842d952ae..eace2afae05a 100644 --- a/crates/biome_json_formatter/src/json/value/array_value.rs +++ b/crates/biome_json_formatter/src/json/value/array_value.rs @@ -14,15 +14,16 @@ impl FormatNodeRule for FormatJsonArrayValue { let should_expand = f.comments().has_dangling_comments(node.syntax()) || f.context().options().expand() == Expand::Always; + let delimiter_spacing = f.options().delimiter_spacing().value(); write!( f, [ l_brack_token.format(), - group(&soft_block_indent(&format_args![ - elements.format(), - format_dangling_comments(node.syntax()) - ])) + group(&soft_block_indent_with_maybe_space( + &format_args![elements.format(), format_dangling_comments(node.syntax())], + delimiter_spacing + )) .should_expand(should_expand), line_suffix_boundary(), r_brack_token.format() From 641722b65a6ae7d278ba1478759ed800e651846f Mon Sep 17 00:00:00 2001 From: luisherranz Date: Thu, 29 Jan 2026 13:08:04 +0100 Subject: [PATCH 04/19] feat(css-formatter): implement delimiterSpacing for CSS --- crates/biome_css_formatter/src/context.rs | 18 ++++++++- .../src/css/auxiliary/attr_function.rs | 21 +++++++---- .../src/css/auxiliary/bracketed_value.rs | 31 ++++++++++++---- .../auxiliary/container_query_in_parens.rs | 4 +- .../container_size_feature_in_parens.rs | 4 +- .../auxiliary/container_style_in_parens.rs | 4 +- .../container_style_query_in_parens.rs | 4 +- .../css/auxiliary/document_custom_matcher.rs | 34 ++++++++++++----- .../src/css/auxiliary/function.rs | 4 +- .../src/css/auxiliary/if_function.rs | 7 +++- .../src/css/auxiliary/if_media_test.rs | 4 +- .../src/css/auxiliary/if_style_test.rs | 4 +- .../src/css/auxiliary/if_supports_test.rs | 4 +- .../if_test_boolean_expr_in_parens.rs | 4 +- .../src/css/auxiliary/import_named_layer.rs | 4 +- .../src/css/auxiliary/import_supports.rs | 4 +- .../css/auxiliary/keyframes_scope_function.rs | 34 ++++++++++++----- .../auxiliary/media_condition_in_parens.rs | 4 +- .../css/auxiliary/media_feature_in_parens.rs | 4 +- .../css/auxiliary/parenthesized_expression.rs | 4 +- .../src/css/auxiliary/scope_edge.rs | 4 +- .../auxiliary/supports_condition_in_parens.rs | 4 +- .../auxiliary/supports_feature_declaration.rs | 4 +- .../src/css/auxiliary/url_function.rs | 37 ++++++++++++++----- ...o_class_function_compound_selector_list.rs | 7 +++- ...pseudo_class_function_custom_identifier.rs | 4 +- ...o_class_function_custom_identifier_list.rs | 7 +++- .../pseudo_class_function_identifier.rs | 4 +- .../css/pseudo/pseudo_class_function_nth.rs | 4 +- ...o_class_function_relative_selector_list.rs | 7 +++- .../pseudo_class_function_selector_list.rs | 4 +- .../pseudo_class_function_value_list.rs | 4 +- .../src/css/pseudo/pseudo_element_function.rs | 4 +- ...eudo_element_function_custom_identifier.rs | 4 +- .../src/css/selectors/attribute_selector.rs | 34 ++++++++++++----- ...pseudo_class_function_compound_selector.rs | 4 +- .../pseudo_class_function_selector.rs | 4 +- .../pseudo_element_function_selector.rs | 4 +- .../selectors/supports_feature_selector.rs | 4 +- .../auxiliary/custom_variant_shorthand.rs | 34 ++++++++++++----- .../src/tailwind/auxiliary/source_inline.rs | 34 ++++++++++++----- 41 files changed, 312 insertions(+), 105 deletions(-) diff --git a/crates/biome_css_formatter/src/context.rs b/crates/biome_css_formatter/src/context.rs index fd53fa51d185..da51be761190 100644 --- a/crates/biome_css_formatter/src/context.rs +++ b/crates/biome_css_formatter/src/context.rs @@ -3,7 +3,7 @@ use biome_formatter::{ CstFormatContext, FormatContext, FormatOptions, IndentStyle, LineEnding, LineWidth, TrailingNewline, TransformSourceMap, }; -use biome_formatter::{IndentWidth, QuoteStyle, prelude::*}; +use biome_formatter::{DelimiterSpacing, IndentWidth, QuoteStyle, prelude::*}; use crate::comments::{CssComments, FormatCssLeadingComment}; use biome_css_syntax::{CssFileSource, CssLanguage}; @@ -62,6 +62,7 @@ pub struct CssFormatOptions { line_ending: LineEnding, line_width: LineWidth, quote_style: QuoteStyle, + delimiter_spacing: DelimiterSpacing, /// Whether to add a trailing newline at the end of the file. Defaults to true. trailing_newline: TrailingNewline, _file_source: CssFileSource, @@ -76,6 +77,7 @@ impl CssFormatOptions { line_ending: LineEnding::default(), line_width: LineWidth::default(), quote_style: QuoteStyle::default(), + delimiter_spacing: DelimiterSpacing::default(), trailing_newline: TrailingNewline::default(), } } @@ -105,6 +107,11 @@ impl CssFormatOptions { self } + pub fn with_delimiter_spacing(mut self, delimiter_spacing: DelimiterSpacing) -> Self { + self.delimiter_spacing = delimiter_spacing; + self + } + pub fn with_trailing_newline(mut self, trailing_newline: TrailingNewline) -> Self { self.trailing_newline = trailing_newline; self @@ -130,6 +137,10 @@ impl CssFormatOptions { self.quote_style = quote_style; } + pub fn set_delimiter_spacing(&mut self, delimiter_spacing: DelimiterSpacing) { + self.delimiter_spacing = delimiter_spacing; + } + pub fn set_trailing_newline(&mut self, trailing_newline: TrailingNewline) { self.trailing_newline = trailing_newline; } @@ -138,6 +149,10 @@ impl CssFormatOptions { self.quote_style } + pub fn delimiter_spacing(&self) -> DelimiterSpacing { + self.delimiter_spacing + } + pub fn trailing_newline(&self) -> TrailingNewline { self.trailing_newline } @@ -176,6 +191,7 @@ impl fmt::Display for CssFormatOptions { writeln!(f, "Line ending: {}", self.line_ending)?; writeln!(f, "Line width: {}", self.line_width.value())?; writeln!(f, "Quote style: {}", self.quote_style)?; + writeln!(f, "Delimiter spacing: {}", self.delimiter_spacing.value())?; writeln!(f, "Trailing newline: {}", self.trailing_newline.value()) } } diff --git a/crates/biome_css_formatter/src/css/auxiliary/attr_function.rs b/crates/biome_css_formatter/src/css/auxiliary/attr_function.rs index 8a503aac9bae..5fd75c189e38 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/attr_function.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/attr_function.rs @@ -16,23 +16,28 @@ impl FormatNodeRule for FormatCssAttrFunction { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ name_token.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&format_with(|f| { - write!(f, [group(&attr_name.format())])?; + soft_block_indent_with_maybe_space( + &format_with(|f| { + write!(f, [group(&attr_name.format())])?; - if let Some(attr_type) = &attr_type { - write!(f, [soft_line_break_or_space(), attr_type.format()])?; - } + if let Some(attr_type) = &attr_type { + write!(f, [soft_line_break_or_space(), attr_type.format()])?; + } - write!(f, [fallback_value.format()])?; + write!(f, [fallback_value.format()])?; - Ok(()) - })), + Ok(()) + }), + should_insert_space + ), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/bracketed_value.rs b/crates/biome_css_formatter/src/css/auxiliary/bracketed_value.rs index 89a41df2e655..e73466708df1 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/bracketed_value.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/bracketed_value.rs @@ -12,13 +12,28 @@ impl FormatNodeRule for FormatCssBracketedValue { r_brack_token, } = node.as_fields(); - write!( - f, - [ - l_brack_token.format(), - items.format(), - r_brack_token.format() - ] - ) + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write!( + f, + [ + l_brack_token.format(), + space(), + items.format(), + space(), + r_brack_token.format() + ] + ) + } else { + write!( + f, + [ + l_brack_token.format(), + items.format(), + r_brack_token.format() + ] + ) + } } } diff --git a/crates/biome_css_formatter/src/css/auxiliary/container_query_in_parens.rs b/crates/biome_css_formatter/src/css/auxiliary/container_query_in_parens.rs index 7b2c6df350cb..886148d03db7 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/container_query_in_parens.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/container_query_in_parens.rs @@ -16,11 +16,13 @@ impl FormatNodeRule for FormatCssContainerQueryInPare r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&query.format()), + soft_block_indent_with_maybe_space(&query.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/container_size_feature_in_parens.rs b/crates/biome_css_formatter/src/css/auxiliary/container_size_feature_in_parens.rs index de7605651385..e983b8cbe04b 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/container_size_feature_in_parens.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/container_size_feature_in_parens.rs @@ -16,11 +16,13 @@ impl FormatNodeRule for FormatCssContainerSizeF r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&feature.format()), + soft_block_indent_with_maybe_space(&feature.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/container_style_in_parens.rs b/crates/biome_css_formatter/src/css/auxiliary/container_style_in_parens.rs index c33e303988f7..e789a5ccc011 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/container_style_in_parens.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/container_style_in_parens.rs @@ -16,11 +16,13 @@ impl FormatNodeRule for FormatCssContainerStyleInPare r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - &soft_block_indent(&query.format()), + soft_block_indent_with_maybe_space(&query.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/container_style_query_in_parens.rs b/crates/biome_css_formatter/src/css/auxiliary/container_style_query_in_parens.rs index d6d82ba351dd..06107195625b 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/container_style_query_in_parens.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/container_style_query_in_parens.rs @@ -17,13 +17,15 @@ impl FormatNodeRule for FormatCssContainerStyleQ r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ style_token.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&query.format()), + soft_block_indent_with_maybe_space(&query.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/document_custom_matcher.rs b/crates/biome_css_formatter/src/css/auxiliary/document_custom_matcher.rs index 6cae447a1eb1..99349597d52b 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/document_custom_matcher.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/document_custom_matcher.rs @@ -17,14 +17,30 @@ impl FormatNodeRule for FormatCssDocumentCustomMatcher r_paren_token, } = node.as_fields(); - write!( - f, - [ - name.format(), - l_paren_token.format(), - value.format(), - r_paren_token.format() - ] - ) + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write!( + f, + [ + name.format(), + l_paren_token.format(), + space(), + value.format(), + space(), + r_paren_token.format() + ] + ) + } else { + write!( + f, + [ + name.format(), + l_paren_token.format(), + value.format(), + r_paren_token.format() + ] + ) + } } } diff --git a/crates/biome_css_formatter/src/css/auxiliary/function.rs b/crates/biome_css_formatter/src/css/auxiliary/function.rs index 20795d08dc47..a423070edac1 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/function.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/function.rs @@ -12,13 +12,15 @@ impl FormatNodeRule for FormatCssFunction { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ name.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&items.format()), + soft_block_indent_with_maybe_space(&items.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/if_function.rs b/crates/biome_css_formatter/src/css/auxiliary/if_function.rs index 7b8871c8f81c..78b4b6bf99ad 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/if_function.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/if_function.rs @@ -14,13 +14,18 @@ impl FormatNodeRule for FormatCssIfFunction { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ if_token.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&css_if_branch_list.format()), + soft_block_indent_with_maybe_space( + &css_if_branch_list.format(), + should_insert_space + ), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/if_media_test.rs b/crates/biome_css_formatter/src/css/auxiliary/if_media_test.rs index 4b22008f06ab..804ea326cc91 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/if_media_test.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/if_media_test.rs @@ -14,13 +14,15 @@ impl FormatNodeRule for FormatCssIfMediaTest { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ media_token.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&test.format()), + soft_block_indent_with_maybe_space(&test.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/if_style_test.rs b/crates/biome_css_formatter/src/css/auxiliary/if_style_test.rs index 95aba388752a..a41c54d8eee7 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/if_style_test.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/if_style_test.rs @@ -14,13 +14,15 @@ impl FormatNodeRule for FormatCssIfStyleTest { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ style_token.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&test.format()), + soft_block_indent_with_maybe_space(&test.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/if_supports_test.rs b/crates/biome_css_formatter/src/css/auxiliary/if_supports_test.rs index 3e6c58308b27..962cd89567c6 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/if_supports_test.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/if_supports_test.rs @@ -14,13 +14,15 @@ impl FormatNodeRule for FormatCssIfSupportsTest { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ supports_token.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&test.format()), + soft_block_indent_with_maybe_space(&test.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/if_test_boolean_expr_in_parens.rs b/crates/biome_css_formatter/src/css/auxiliary/if_test_boolean_expr_in_parens.rs index 0f133638e097..962a88958c2a 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/if_test_boolean_expr_in_parens.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/if_test_boolean_expr_in_parens.rs @@ -17,11 +17,13 @@ impl FormatNodeRule for FormatCssIfTestBooleanExpr r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ l_paren_token.format(), - soft_block_indent(&expression.format()), + soft_block_indent_with_maybe_space(&expression.format(), should_insert_space), r_paren_token.format() ] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/import_named_layer.rs b/crates/biome_css_formatter/src/css/auxiliary/import_named_layer.rs index 5a2739a1854f..e6053c901b7f 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/import_named_layer.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/import_named_layer.rs @@ -13,13 +13,15 @@ impl FormatNodeRule for FormatCssImportNamedLayer { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ layer_token.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&name.format()), + soft_block_indent_with_maybe_space(&name.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/import_supports.rs b/crates/biome_css_formatter/src/css/auxiliary/import_supports.rs index 33403c533f21..4acaedd3a0fe 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/import_supports.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/import_supports.rs @@ -13,13 +13,15 @@ impl FormatNodeRule for FormatCssImportSupports { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ supports_token.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&condition.format()), + soft_block_indent_with_maybe_space(&condition.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/auxiliary/keyframes_scope_function.rs b/crates/biome_css_formatter/src/css/auxiliary/keyframes_scope_function.rs index a821fb9f3d89..d3037db2d92a 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/keyframes_scope_function.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/keyframes_scope_function.rs @@ -17,14 +17,30 @@ impl FormatNodeRule for FormatCssKeyframesScopeFuncti r_paren_token, } = node.as_fields(); - write!( - f, - [ - scope.format(), - l_paren_token.format(), - name.format(), - r_paren_token.format(), - ] - ) + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write!( + f, + [ + scope.format(), + l_paren_token.format(), + space(), + name.format(), + space(), + r_paren_token.format(), + ] + ) + } else { + write!( + f, + [ + scope.format(), + l_paren_token.format(), + name.format(), + r_paren_token.format(), + ] + ) + } } } diff --git a/crates/biome_css_formatter/src/css/auxiliary/media_condition_in_parens.rs b/crates/biome_css_formatter/src/css/auxiliary/media_condition_in_parens.rs index 05d005013bff..09fc1c921eeb 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/media_condition_in_parens.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/media_condition_in_parens.rs @@ -16,11 +16,13 @@ impl FormatNodeRule for FormatCssMediaConditionInPare r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&condition.format()), + soft_block_indent_with_maybe_space(&condition.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/media_feature_in_parens.rs b/crates/biome_css_formatter/src/css/auxiliary/media_feature_in_parens.rs index 330700cd5436..ad7a841d08dd 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/media_feature_in_parens.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/media_feature_in_parens.rs @@ -12,11 +12,13 @@ impl FormatNodeRule for FormatCssMediaFeatureInParens { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&feature.format()), + soft_block_indent_with_maybe_space(&feature.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/parenthesized_expression.rs b/crates/biome_css_formatter/src/css/auxiliary/parenthesized_expression.rs index 23c189ea8373..1ac45bce08d5 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/parenthesized_expression.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/parenthesized_expression.rs @@ -16,11 +16,13 @@ impl FormatNodeRule for FormatCssParenthesizedExpres r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&expression.format()), + soft_block_indent_with_maybe_space(&expression.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/scope_edge.rs b/crates/biome_css_formatter/src/css/auxiliary/scope_edge.rs index 429581086ed7..edbdebcbebf8 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/scope_edge.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/scope_edge.rs @@ -12,11 +12,13 @@ impl FormatNodeRule for FormatCssScopeEdge { r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&selectors.format()), + soft_block_indent_with_maybe_space(&selectors.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/supports_condition_in_parens.rs b/crates/biome_css_formatter/src/css/auxiliary/supports_condition_in_parens.rs index a473e04223d1..d9f91e95b60e 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/supports_condition_in_parens.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/supports_condition_in_parens.rs @@ -16,11 +16,13 @@ impl FormatNodeRule for FormatCssSupportsCondition r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&condition.format()), + soft_block_indent_with_maybe_space(&condition.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/supports_feature_declaration.rs b/crates/biome_css_formatter/src/css/auxiliary/supports_feature_declaration.rs index 195c2c38b7d9..cbaa1900ce9a 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/supports_feature_declaration.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/supports_feature_declaration.rs @@ -16,11 +16,13 @@ impl FormatNodeRule for FormatCssSupportsFeatureD r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ l_paren_token.format(), - soft_block_indent(&declaration.format()), + soft_block_indent_with_maybe_space(&declaration.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/css/auxiliary/url_function.rs b/crates/biome_css_formatter/src/css/auxiliary/url_function.rs index 32c13bbbce9c..ed969b0726e6 100644 --- a/crates/biome_css_formatter/src/css/auxiliary/url_function.rs +++ b/crates/biome_css_formatter/src/css/auxiliary/url_function.rs @@ -14,15 +14,32 @@ impl FormatNodeRule for FormatCssUrlFunction { r_paren_token, } = node.as_fields(); - write!( - f, - [ - name.format(), - l_paren_token.format(), - value.format(), - modifiers.format(), - r_paren_token.format() - ] - ) + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write!( + f, + [ + name.format(), + l_paren_token.format(), + space(), + value.format(), + modifiers.format(), + space(), + r_paren_token.format() + ] + ) + } else { + write!( + f, + [ + name.format(), + l_paren_token.format(), + value.format(), + modifiers.format(), + r_paren_token.format() + ] + ) + } } } diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_compound_selector_list.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_compound_selector_list.rs index fc64e152ca97..01baafba849f 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_compound_selector_list.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_compound_selector_list.rs @@ -22,6 +22,8 @@ impl FormatNodeRule r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -29,7 +31,10 @@ impl FormatNodeRule .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent(&compound_selectors.format()), + soft_block_indent_with_maybe_space( + &compound_selectors.format(), + should_insert_space + ), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_custom_identifier.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_custom_identifier.rs index 1ab5675c46be..6ebf1728b32d 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_custom_identifier.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_custom_identifier.rs @@ -22,6 +22,8 @@ impl FormatNodeRule r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -29,7 +31,7 @@ impl FormatNodeRule .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent(&ident.format()), + soft_block_indent_with_maybe_space(&ident.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_custom_identifier_list.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_custom_identifier_list.rs index d63b18ecef90..5be7e5595d25 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_custom_identifier_list.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_custom_identifier_list.rs @@ -23,6 +23,8 @@ impl FormatNodeRule r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -30,11 +32,12 @@ impl FormatNodeRule .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent( + soft_block_indent_with_maybe_space( &items.format().with_options( FormatCssCustomIdentifierCommaSeparatedListOptions::default() .with_fluid_layout() - ) + ), + should_insert_space ), r_paren_token.format() ]) diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_identifier.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_identifier.rs index c58f6a63399c..c2a2436c9697 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_identifier.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_identifier.rs @@ -18,6 +18,8 @@ impl FormatNodeRule for FormatCssPseudoClassFu r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -25,7 +27,7 @@ impl FormatNodeRule for FormatCssPseudoClassFu .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent(&ident.format()), + soft_block_indent_with_maybe_space(&ident.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_nth.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_nth.rs index 0b5d32b1b0c3..8376cc099121 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_nth.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_nth.rs @@ -18,6 +18,8 @@ impl FormatNodeRule for FormatCssPseudoClassFunctionN r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -25,7 +27,7 @@ impl FormatNodeRule for FormatCssPseudoClassFunctionN .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent(&selector.format()), + soft_block_indent_with_maybe_space(&selector.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_relative_selector_list.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_relative_selector_list.rs index 1470e892ecbe..5a3b4900b3dd 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_relative_selector_list.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_relative_selector_list.rs @@ -22,6 +22,8 @@ impl FormatNodeRule r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -29,7 +31,10 @@ impl FormatNodeRule .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent(&relative_selectors.format()), + soft_block_indent_with_maybe_space( + &relative_selectors.format(), + should_insert_space + ), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_selector_list.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_selector_list.rs index 591346c9aef1..9ec5ef8badae 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_selector_list.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_selector_list.rs @@ -22,6 +22,8 @@ impl FormatNodeRule r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -29,7 +31,7 @@ impl FormatNodeRule .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent(&selectors.format()), + soft_block_indent_with_maybe_space(&selectors.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_value_list.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_value_list.rs index 8a55355519db..a48de621e7b1 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_value_list.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_class_function_value_list.rs @@ -18,6 +18,8 @@ impl FormatNodeRule for FormatCssPseudoClassFun r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -25,7 +27,7 @@ impl FormatNodeRule for FormatCssPseudoClassFun .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent(&values.format()), + soft_block_indent_with_maybe_space(&values.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_element_function.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_element_function.rs index 3986437e0b93..ae982899cf80 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_element_function.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_element_function.rs @@ -17,13 +17,15 @@ impl FormatNodeRule for FormatCssPseudoElementFunction r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ name.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&items.format()), + soft_block_indent_with_maybe_space(&items.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/pseudo/pseudo_element_function_custom_identifier.rs b/crates/biome_css_formatter/src/css/pseudo/pseudo_element_function_custom_identifier.rs index 187b42f5e7dc..cdee2abdde09 100644 --- a/crates/biome_css_formatter/src/css/pseudo/pseudo_element_function_custom_identifier.rs +++ b/crates/biome_css_formatter/src/css/pseudo/pseudo_element_function_custom_identifier.rs @@ -21,13 +21,15 @@ impl FormatNodeRule r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ name.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&ident.format()), + soft_block_indent_with_maybe_space(&ident.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/selectors/attribute_selector.rs b/crates/biome_css_formatter/src/css/selectors/attribute_selector.rs index 93918e19e166..d0d3a0a21985 100644 --- a/crates/biome_css_formatter/src/css/selectors/attribute_selector.rs +++ b/crates/biome_css_formatter/src/css/selectors/attribute_selector.rs @@ -13,14 +13,30 @@ impl FormatNodeRule for FormatCssAttributeSelector { r_brack_token, } = node.as_fields(); - write!( - f, - [ - l_brack_token.format(), - name.format(), - matcher.format(), - r_brack_token.format() - ] - ) + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write!( + f, + [ + l_brack_token.format(), + space(), + name.format(), + matcher.format(), + space(), + r_brack_token.format() + ] + ) + } else { + write!( + f, + [ + l_brack_token.format(), + name.format(), + matcher.format(), + r_brack_token.format() + ] + ) + } } } diff --git a/crates/biome_css_formatter/src/css/selectors/pseudo_class_function_compound_selector.rs b/crates/biome_css_formatter/src/css/selectors/pseudo_class_function_compound_selector.rs index ba34353ab18b..efd72f1cfe4e 100644 --- a/crates/biome_css_formatter/src/css/selectors/pseudo_class_function_compound_selector.rs +++ b/crates/biome_css_formatter/src/css/selectors/pseudo_class_function_compound_selector.rs @@ -22,6 +22,8 @@ impl FormatNodeRule r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ @@ -29,7 +31,7 @@ impl FormatNodeRule .with_options(FormatCssIdentifierOptions::default().with_lowercasing()), group(&format_args![ l_paren_token.format(), - soft_block_indent(&selector.format()), + soft_block_indent_with_maybe_space(&selector.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/selectors/pseudo_class_function_selector.rs b/crates/biome_css_formatter/src/css/selectors/pseudo_class_function_selector.rs index e1585025b7b0..d121fed6e7ea 100644 --- a/crates/biome_css_formatter/src/css/selectors/pseudo_class_function_selector.rs +++ b/crates/biome_css_formatter/src/css/selectors/pseudo_class_function_selector.rs @@ -17,13 +17,15 @@ impl FormatNodeRule for FormatCssPseudoClassFunc r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ name.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&selector.format()), + soft_block_indent_with_maybe_space(&selector.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/selectors/pseudo_element_function_selector.rs b/crates/biome_css_formatter/src/css/selectors/pseudo_element_function_selector.rs index 069bb4edf8c5..160f9bcbc386 100644 --- a/crates/biome_css_formatter/src/css/selectors/pseudo_element_function_selector.rs +++ b/crates/biome_css_formatter/src/css/selectors/pseudo_element_function_selector.rs @@ -17,13 +17,15 @@ impl FormatNodeRule for FormatCssPseudoElement r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [ name.format(), group(&format_args![ l_paren_token.format(), - soft_block_indent(&selector.format()), + soft_block_indent_with_maybe_space(&selector.format(), should_insert_space), r_paren_token.format() ]) ] diff --git a/crates/biome_css_formatter/src/css/selectors/supports_feature_selector.rs b/crates/biome_css_formatter/src/css/selectors/supports_feature_selector.rs index 9ad589fdf90b..2e9bf2c1d0a8 100644 --- a/crates/biome_css_formatter/src/css/selectors/supports_feature_selector.rs +++ b/crates/biome_css_formatter/src/css/selectors/supports_feature_selector.rs @@ -17,12 +17,14 @@ impl FormatNodeRule for FormatCssSupportsFeatureSele r_paren_token, } = node.as_fields(); + let should_insert_space = f.options().delimiter_spacing().value(); + write!( f, [group(&format_args![ selector_token.format(), l_paren_token.format(), - soft_block_indent(&selector.format()), + soft_block_indent_with_maybe_space(&selector.format(), should_insert_space), r_paren_token.format() ])] ) diff --git a/crates/biome_css_formatter/src/tailwind/auxiliary/custom_variant_shorthand.rs b/crates/biome_css_formatter/src/tailwind/auxiliary/custom_variant_shorthand.rs index 1ea6480550be..0fe937644700 100644 --- a/crates/biome_css_formatter/src/tailwind/auxiliary/custom_variant_shorthand.rs +++ b/crates/biome_css_formatter/src/tailwind/auxiliary/custom_variant_shorthand.rs @@ -17,14 +17,30 @@ impl FormatNodeRule for FormatTwCustomVariantShorthand semicolon_token, } = node.as_fields(); - write!( - f, - [ - l_paren_token.format(), - selector.format(), - r_paren_token.format(), - semicolon_token.format() - ] - ) + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write!( + f, + [ + l_paren_token.format(), + space(), + selector.format(), + space(), + r_paren_token.format(), + semicolon_token.format() + ] + ) + } else { + write!( + f, + [ + l_paren_token.format(), + selector.format(), + r_paren_token.format(), + semicolon_token.format() + ] + ) + } } } diff --git a/crates/biome_css_formatter/src/tailwind/auxiliary/source_inline.rs b/crates/biome_css_formatter/src/tailwind/auxiliary/source_inline.rs index b0987a143d85..646cf9498a0e 100644 --- a/crates/biome_css_formatter/src/tailwind/auxiliary/source_inline.rs +++ b/crates/biome_css_formatter/src/tailwind/auxiliary/source_inline.rs @@ -13,14 +13,30 @@ impl FormatNodeRule for FormatTwSourceInline { r_paren_token, } = node.as_fields(); - write!( - f, - [ - inline_token.format(), - l_paren_token.format(), - &content.format(), - r_paren_token.format(), - ] - ) + let should_insert_space = f.options().delimiter_spacing().value(); + + if should_insert_space { + write!( + f, + [ + inline_token.format(), + l_paren_token.format(), + space(), + &content.format(), + space(), + r_paren_token.format(), + ] + ) + } else { + write!( + f, + [ + inline_token.format(), + l_paren_token.format(), + &content.format(), + r_paren_token.format(), + ] + ) + } } } From 6ba2609eb28e4cb09299034ceb51f7c83b4112b8 Mon Sep 17 00:00:00 2001 From: luisherranz Date: Thu, 29 Jan 2026 13:08:22 +0100 Subject: [PATCH 05/19] test(formatter): update existing snapshots with delimiterSpacing option --- .../tests/invalid/formatter_extraneous_field.json.snap | 1 + .../tests/invalid/formatter_quote_style.json.snap | 1 + .../biome_css_formatter/tests/specs/css/atrule/charset.css.snap | 1 + .../tests/specs/css/atrule/color_profile.css.snap | 1 + .../tests/specs/css/atrule/container.css.snap | 1 + .../tests/specs/css/atrule/counter_style.css.snap | 1 + .../tests/specs/css/atrule/document.css.snap | 1 + .../tests/specs/css/atrule/font_face.css.snap | 1 + .../tests/specs/css/atrule/font_feature_values.css.snap | 1 + .../tests/specs/css/atrule/function.css.snap | 1 + .../biome_css_formatter/tests/specs/css/atrule/import.css.snap | 1 + .../tests/specs/css/atrule/keyframes.css.snap | 1 + .../biome_css_formatter/tests/specs/css/atrule/layer.css.snap | 1 + .../biome_css_formatter/tests/specs/css/atrule/media.css.snap | 1 + .../tests/specs/css/atrule/namespace.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/atrule/page.css.snap | 1 + .../tests/specs/css/atrule/page_complex.css.snap | 1 + .../tests/specs/css/atrule/property.css.snap | 1 + .../biome_css_formatter/tests/specs/css/atrule/scope.css.snap | 1 + .../tests/specs/css/atrule/starting_style.css.snap | 1 + .../tests/specs/css/atrule/supports.css.snap | 1 + .../tests/specs/css/atrule/supports_complex.css.snap | 1 + .../tests/specs/css/atrule/tailwind/source-not.css.snap | 2 ++ .../biome_css_formatter/tests/specs/css/atrule/unknown.css.snap | 1 + .../biome_css_formatter/tests/specs/css/atrule/value.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/attr.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/block.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/casing.css.snap | 1 + .../tests/specs/css/color/functional_colors.css.snap | 1 + .../tests/specs/css/color/hex_colors.css.snap | 1 + .../tests/specs/css/comma_separated_values.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/composes.css.snap | 1 + .../tests/specs/css/declaration_empty.css.snap | 1 + .../tests/specs/css/declaration_list.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/dimensions.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/empty.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/functions.css.snap | 1 + .../tests/specs/css/global_suppression.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/if.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/important.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/issue_3229.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/issue_4298.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/issue_8636.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/namespace.css.snap | 1 + .../tests/specs/css/nesting/conditional_at_rule.css.snap | 1 + .../tests/specs/css/nesting/nesting.css.snap | 1 + .../tests/specs/css/nesting/nesting_1.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/number.css.snap | 1 + .../biome_css_formatter/tests/specs/css/properties/all.css.snap | 1 + .../tests/specs/css/properties/border.css.snap | 1 + .../tests/specs/css/properties/custom.css.snap | 1 + .../tests/specs/css/properties/generic.css.snap | 1 + .../tests/specs/css/properties/grid.css.snap | 1 + .../tests/specs/css/properties/unicode_range.css.snap | 1 + .../tests/specs/css/properties/z-index.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/pseudo/is.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/pseudo/not.css.snap | 1 + .../css/pseudo/pseudo_class_function_compound_selector.css.snap | 1 + .../pseudo_class_function_compound_selector_list.css.snap | 1 + .../pseudo_class_function_custom_identifier_list.css.snap | 1 + .../tests/specs/css/pseudo/pseudo_class_function_nth.css.snap | 1 + .../pseudo_class_function_relative_selector_list.css.snap | 1 + .../specs/css/pseudo/pseudo_class_function_selector.css.snap | 1 + .../tests/specs/css/pseudo/pseudo_class_function_state.css.snap | 1 + .../specs/css/pseudo/pseudo_class_function_value_list.css.snap | 1 + .../tests/specs/css/pseudo/pseudo_class_identifier.css.snap | 1 + .../tests/specs/css/pseudo/pseudo_element_selector.css.snap | 1 + .../biome_css_formatter/tests/specs/css/pseudo/where.css.snap | 1 + .../tests/specs/css/quote_style/normalize_quotes.css.snap | 2 ++ .../tests/specs/css/range/between_rules.css.snap | 1 + .../tests/specs/css/range/keyframes.css.snap | 1 + .../tests/specs/css/range/mid_value.css.snap | 1 + .../tests/specs/css/range/selector_list.css.snap | 1 + .../tests/specs/css/range/single_declaration.css.snap | 1 + .../tests/specs/css/range/single_rule.css.snap | 1 + .../tests/specs/css/range/single_value.css.snap | 1 + .../tests/specs/css/selectors/attribute_selector.css.snap | 1 + .../tests/specs/css/selectors/class_selector.css.snap | 1 + .../tests/specs/css/selectors/complex_selector.css.snap | 1 + .../tests/specs/css/selectors/id_selector.css.snap | 1 + .../specs/css/selectors/pseudo_class/pseudo_class_has.css.snap | 1 + .../tests/specs/css/selectors/selector_lists.css.snap | 1 + .../tests/specs/css/selectors/type_selector.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/simple.css.snap | 1 + .../tests/specs/css/tailwind/long-apply.css.snap | 2 ++ .../tests/specs/css/tailwind/plugin-no-options.css.snap | 2 ++ .../tests/specs/css/tailwind/plugin-with-options.css.snap | 2 ++ .../tests/specs/css/tailwind/shadcn-default.css.snap | 2 ++ .../tests/specs/css/tailwind/source-inline.css.snap | 2 ++ .../tests/specs/css/tailwind/utility.css.snap | 2 ++ .../tests/specs/css/trailing_newline/simple.css.snap | 2 ++ crates/biome_css_formatter/tests/specs/css/units.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/url.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/value_fill.css.snap | 1 + .../tests/specs/css/value_one_group_per_line.css.snap | 1 + .../tests/specs/css/value_one_per_line.css.snap | 1 + crates/biome_css_formatter/tests/specs/css/variables.css.snap | 1 + .../tests/specs/js/module/array/array_nested.js.snap | 1 + .../tests/specs/js/module/array/binding_pattern.js.snap | 1 + .../tests/specs/js/module/array/empty_lines.js.snap | 1 + .../tests/specs/js/module/array/expand/expand-always.js.snap | 2 ++ .../tests/specs/js/module/array/holes_comments.js.snap | 1 + .../tests/specs/js/module/array/spaces.js.snap | 1 + .../tests/specs/js/module/array/spread.js.snap | 1 + .../array/trailing-commas/es5/array_trailing_commas.js.snap | 2 ++ .../array/trailing-commas/none/array_trailing_commas.js.snap | 2 ++ .../tests/specs/js/module/arrow/arrow-comments.js.snap | 2 ++ .../tests/specs/js/module/arrow/arrow_chain_comments.js.snap | 2 ++ .../tests/specs/js/module/arrow/arrow_function.js.snap | 2 ++ .../tests/specs/js/module/arrow/arrow_nested.js.snap | 2 ++ .../tests/specs/js/module/arrow/arrow_test_callback.js.snap | 2 ++ .../specs/js/module/arrow/assignment_binding_line_break.js.snap | 2 ++ .../biome_js_formatter/tests/specs/js/module/arrow/call.js.snap | 2 ++ .../tests/specs/js/module/arrow/curried_indents.js.snap | 2 ++ .../tests/specs/js/module/arrow/currying.js.snap | 2 ++ .../tests/specs/js/module/arrow/params.js.snap | 2 ++ .../specs/js/module/assignment/array-assignment-holes.js.snap | 1 + .../tests/specs/js/module/assignment/assignment.js.snap | 1 + .../tests/specs/js/module/assignment/assignment_ignore.js.snap | 1 + .../tests/specs/js/module/binding/array-binding-holes.js.snap | 2 ++ .../tests/specs/js/module/binding/array_binding.js.snap | 2 ++ .../tests/specs/js/module/binding/identifier_binding.js.snap | 2 ++ .../tests/specs/js/module/binding/nested_bindings.js.snap | 2 ++ .../tests/specs/js/module/binding/object_binding.js.snap | 2 ++ .../tests/specs/js/module/bom_character.js.snap | 1 + .../tests/specs/js/module/call/call_chain.js.snap | 1 + .../tests/specs/js/module/call/simple_arguments.js.snap | 1 + .../tests/specs/js/module/call_expression.js.snap | 1 + .../tests/specs/js/module/class/class.js.snap | 1 + .../tests/specs/js/module/class/class_comments.js.snap | 1 + .../tests/specs/js/module/class/private_method.js.snap | 1 + .../biome_js_formatter/tests/specs/js/module/comments.js.snap | 1 + .../tests/specs/js/module/comments/import_exports.js.snap | 1 + .../js/module/comments/nested_comments/nested_comments.js.snap | 2 ++ .../tests/specs/js/module/declarations/test_declaration.js.snap | 1 + .../specs/js/module/declarations/variable_declaration.js.snap | 1 + .../js/module/decorators/class_members_call_decorator.js.snap | 1 + .../specs/js/module/decorators/class_members_mixed.js.snap | 1 + .../specs/js/module/decorators/class_members_simple.js.snap | 1 + .../tests/specs/js/module/decorators/class_simple.js.snap | 1 + .../js/module/decorators/class_simple_call_decorator.js.snap | 1 + .../tests/specs/js/module/decorators/export_default_1.js.snap | 1 + .../tests/specs/js/module/decorators/export_default_2.js.snap | 1 + .../tests/specs/js/module/decorators/export_default_3.js.snap | 1 + .../tests/specs/js/module/decorators/export_default_4.js.snap | 1 + .../tests/specs/js/module/decorators/expression.js.snap | 1 + .../tests/specs/js/module/decorators/multiline.js.snap | 1 + .../biome_js_formatter/tests/specs/js/module/each/each.js.snap | 1 + .../export/bracket-spacing/export_bracket_spacing.js.snap | 2 ++ .../tests/specs/js/module/export/class_clause.js.snap | 1 + .../tests/specs/js/module/export/expression_clause.js.snap | 1 + .../tests/specs/js/module/export/from_clause.js.snap | 1 + .../tests/specs/js/module/export/function_clause.js.snap | 1 + .../tests/specs/js/module/export/named_clause.js.snap | 1 + .../tests/specs/js/module/export/named_from_clause.js.snap | 1 + .../export/trailing-commas/es5/export_trailing_commas.js.snap | 2 ++ .../export/trailing-commas/none/export_trailing_commas.js.snap | 2 ++ .../tests/specs/js/module/export/variable_declaration.js.snap | 1 + .../tests/specs/js/module/expression/binary_expression.js.snap | 1 + .../specs/js/module/expression/binary_range_expression.js.snap | 1 + .../specs/js/module/expression/binaryish_expression.js.snap | 1 + .../tests/specs/js/module/expression/call_arguments.js.snap | 1 + .../js/module/expression/computed-member-expression.js.snap | 1 + .../specs/js/module/expression/conditional_expression.js.snap | 1 + .../import_meta_expression/import_meta_expression.js.snap | 2 ++ .../tests/specs/js/module/expression/literal_expression.js.snap | 1 + .../tests/specs/js/module/expression/logical_expression.js.snap | 1 + .../js/module/expression/member-chain/complex_arguments.js.snap | 1 + .../specs/js/module/expression/member-chain/computed.js.snap | 1 + .../js/module/expression/member-chain/inline-merge.js.snap | 1 + .../specs/js/module/expression/member-chain/multi_line.js.snap | 1 + .../module/expression/member-chain/static_member_regex.js.snap | 1 + .../js/module/expression/member-chain/with_comments.js.snap | 1 + .../nested_conditional_expression.js.snap | 2 ++ .../tests/specs/js/module/expression/new_expression.js.snap | 1 + .../specs/js/module/expression/post_update_expression.js.snap | 1 + .../specs/js/module/expression/pre_update_expression.js.snap | 1 + .../specs/js/module/expression/sequence_expression.js.snap | 1 + .../specs/js/module/expression/static_member_expression.js.snap | 1 + .../tests/specs/js/module/expression/this_expression.js.snap | 1 + .../tests/specs/js/module/expression/unary_expression.js.snap | 1 + .../expression/unary_expression_verbatim_argument.js.snap | 1 + .../tests/specs/js/module/function/function.js.snap | 1 + .../tests/specs/js/module/function/function_args.js.snap | 1 + .../tests/specs/js/module/function/function_comments.js.snap | 1 + .../tests/specs/js/module/global_suppression.js.snap | 1 + crates/biome_js_formatter/tests/specs/js/module/ident.js.snap | 1 + .../tests/specs/js/module/import/bare_import.js.snap | 1 + .../import/bracket-spacing/import_bracket_spacing.js.snap | 2 ++ .../tests/specs/js/module/import/default_import.js.snap | 1 + .../tests/specs/js/module/import/import_call.js.snap | 1 + .../tests/specs/js/module/import/import_specifiers.js.snap | 1 + .../tests/specs/js/module/import/named_import_clause.js.snap | 1 + .../tests/specs/js/module/import/namespace_import.js.snap | 1 + .../import/trailing-commas/es5/import_trailing_commas.js.snap | 2 ++ .../import/trailing-commas/none/import_trailing_commas.js.snap | 2 ++ .../tests/specs/js/module/indent-width/4/example-1.js.snap | 2 ++ .../tests/specs/js/module/indent-width/4/example-2.js.snap | 2 ++ .../tests/specs/js/module/indent-width/8/example-1.js.snap | 2 ++ .../tests/specs/js/module/indent-width/8/example-2.js.snap | 2 ++ .../specs/js/module/interpreter-with-trailing-spaces.js.snap | 1 + .../tests/specs/js/module/interpreter.js.snap | 1 + .../tests/specs/js/module/interpreter_with_empty_line.js.snap | 1 + .../tests/specs/js/module/invalid/block_stmt_err.js.snap | 1 + .../tests/specs/js/module/invalid/if_stmt_err.js.snap | 1 + .../tests/specs/js/module/line-ending/auto/line_ending.js.snap | 2 ++ .../tests/specs/js/module/line-ending/cr/line_ending.js.snap | 2 ++ .../tests/specs/js/module/line-ending/crlf/line_ending.js.snap | 2 ++ .../biome_js_formatter/tests/specs/js/module/newlines.js.snap | 1 + .../tests/specs/js/module/no-semi/class.js.snap | 2 ++ .../tests/specs/js/module/no-semi/issue2006.js.snap | 2 ++ .../tests/specs/js/module/no-semi/issue6029.js.snap | 2 ++ .../tests/specs/js/module/no-semi/issue6375.js.snap | 2 ++ .../tests/specs/js/module/no-semi/no-semi.js.snap | 2 ++ .../tests/specs/js/module/no-semi/private-field.js.snap | 2 ++ .../tests/specs/js/module/no-semi/semicolons-asi.js.snap | 2 ++ .../tests/specs/js/module/no-semi/semicolons_range.js.snap | 2 ++ .../tests/specs/js/module/number/number.js.snap | 1 + .../tests/specs/js/module/number/number_with_space.js.snap | 1 + .../object/bracket-spacing/object_bracket_spacing.js.snap | 2 ++ .../tests/specs/js/module/object/computed_member.js.snap | 1 + .../tests/specs/js/module/object/expand/expand-never.js.snap | 2 ++ .../tests/specs/js/module/object/getter_setter.js.snap | 1 + .../tests/specs/js/module/object/numeric-property.js.snap | 1 + .../tests/specs/js/module/object/object.js.snap | 1 + .../tests/specs/js/module/object/object_comments.js.snap | 1 + .../tests/specs/js/module/object/octal_literals_key.js.snap | 1 + .../tests/specs/js/module/object/property_key.js.snap | 1 + .../tests/specs/js/module/object/property_object_member.js.snap | 1 + .../object/trailing-commas/es5/object_trailing_commas.js.snap | 2 ++ .../object/trailing-commas/none/object_trailing_commas.js.snap | 2 ++ .../module/operator-linebreak/before/operator_linebreak.js.snap | 2 ++ .../tests/specs/js/module/parentheses/parentheses.js.snap | 1 + .../js/module/parentheses/range_parentheses_binary.js.snap | 1 + .../js/module/range/range_parenthesis_after_semicol.js.snap | 1 + .../js/module/range/range_parenthesis_after_semicol_1.js.snap | 1 + crates/biome_js_formatter/tests/specs/js/module/script.js.snap | 1 + .../tests/specs/js/module/statement/block_statement.js.snap | 1 + .../tests/specs/js/module/statement/continue_stmt.js.snap | 1 + .../tests/specs/js/module/statement/do_while.js.snap | 1 + .../tests/specs/js/module/statement/empty_blocks.js.snap | 1 + .../tests/specs/js/module/statement/for_in.js.snap | 1 + .../tests/specs/js/module/statement/for_loop.js.snap | 1 + .../tests/specs/js/module/statement/for_of.js.snap | 1 + .../tests/specs/js/module/statement/if_chain.js.snap | 1 + .../tests/specs/js/module/statement/if_else.js.snap | 1 + .../tests/specs/js/module/statement/return.js.snap | 1 + .../specs/js/module/statement/return_verbatim_argument.js.snap | 1 + .../tests/specs/js/module/statement/statement.js.snap | 1 + .../tests/specs/js/module/statement/switch.js.snap | 1 + .../tests/specs/js/module/statement/switch_comment.js.snap | 1 + .../tests/specs/js/module/statement/throw.js.snap | 1 + .../tests/specs/js/module/statement/try_catch_finally.js.snap | 1 + .../tests/specs/js/module/statement/while_loop.js.snap | 1 + .../specs/js/module/string/quotePreserve/directives.js.snap | 2 ++ .../js/module/string/quotePreserve/parentheses_token.js.snap | 2 ++ .../js/module/string/quotePreserve/properties_quotes.js.snap | 2 ++ .../tests/specs/js/module/string/quotePreserve/string.js.snap | 2 ++ .../tests/specs/js/module/string/quoteSingle/directives.js.snap | 2 ++ .../js/module/string/quoteSingle/parentheses_token.js.snap | 2 ++ .../js/module/string/quoteSingle/properties_quotes.js.snap | 2 ++ .../tests/specs/js/module/string/quoteSingle/string.js.snap | 2 ++ .../tests/specs/js/module/suppression.js.snap | 1 + .../tests/specs/js/module/template/template.js.snap | 1 + .../specs/js/module/trailing_newline/disabled/simple.js.snap | 2 ++ crates/biome_js_formatter/tests/specs/js/module/with.js.snap | 1 + crates/biome_js_formatter/tests/specs/js/script/script.js.snap | 1 + .../tests/specs/js/script/script_with_bom.js.snap | 1 + crates/biome_js_formatter/tests/specs/js/script/with.js.snap | 1 + .../biome_js_formatter/tests/specs/jsx/arrow_function.jsx.snap | 1 + .../tests/specs/jsx/attribute_escape.jsx.snap | 1 + .../specs/jsx/attribute_position/attribute_position.jsx.snap | 2 ++ crates/biome_js_formatter/tests/specs/jsx/attributes.jsx.snap | 1 + .../specs/jsx/bracket_same_line/bracket_same_line.jsx.snap | 2 ++ crates/biome_js_formatter/tests/specs/jsx/comments.jsx.snap | 1 + crates/biome_js_formatter/tests/specs/jsx/conditional.jsx.snap | 1 + crates/biome_js_formatter/tests/specs/jsx/element.jsx.snap | 1 + crates/biome_js_formatter/tests/specs/jsx/fragment.jsx.snap | 1 + .../jsx/multiline_jsx_string/multiline_jsx_string.jsx.snap | 2 ++ crates/biome_js_formatter/tests/specs/jsx/new-lines.jsx.snap | 1 + .../tests/specs/jsx/parentheses_range.jsx.snap | 1 + .../quote_style/jsx_double_string_double/quote_style.jsx.snap | 2 ++ .../quote_style/jsx_double_string_single/quote_style.jsx.snap | 2 ++ .../quote_style/jsx_single_string_double/quote_style.jsx.snap | 2 ++ .../quote_style/jsx_single_string_single/quote_style.jsx.snap | 2 ++ crates/biome_js_formatter/tests/specs/jsx/self_closing.jsx.snap | 1 + crates/biome_js_formatter/tests/specs/jsx/smoke.jsx.snap | 1 + .../biome_js_formatter/tests/specs/jsx/text_children.jsx.snap | 1 + .../tests/specs/ts/array/expand/expand-always.ts.snap | 2 ++ .../tests/specs/ts/arrow/arrow_parentheses.ts.snap | 2 ++ .../ts/arrow/long_arrow_parentheses_with_line_break.ts.snap | 2 ++ .../specs/ts/arrow/parameter_default_binding_line_break.ts.snap | 2 ++ crates/biome_js_formatter/tests/specs/ts/arrow_chain.ts.snap | 1 + .../tests/specs/ts/assignment/as_assignment.ts.snap | 1 + .../tests/specs/ts/assignment/assignment.ts.snap | 1 + .../tests/specs/ts/assignment/assignment_comments.ts.snap | 1 + .../specs/ts/assignment/property_assignment_comments.ts.snap | 1 + .../tests/specs/ts/assignment/type_assertion_assignment.ts.snap | 1 + .../tests/specs/ts/binding/definite_variable.ts.snap | 1 + .../biome_js_formatter/tests/specs/ts/call_expression.ts.snap | 1 + crates/biome_js_formatter/tests/specs/ts/class/accessor.ts.snap | 1 + .../tests/specs/ts/class/assignment_layout.ts.snap | 1 + .../tests/specs/ts/class/constructor_parameter.ts.snap | 1 + .../tests/specs/ts/class/implements_clause.ts.snap | 1 + .../tests/specs/ts/class/readonly_ambient_property.ts.snap | 1 + .../ts/class/trailing_commas/es5/class_trailing_commas.ts.snap | 2 ++ .../ts/class/trailing_commas/none/class_trailing_commas.ts.snap | 2 ++ .../biome_js_formatter/tests/specs/ts/declaration/class.ts.snap | 1 + .../tests/specs/ts/declaration/declare_function.ts.snap | 1 + .../tests/specs/ts/declaration/global_declaration.ts.snap | 1 + .../tests/specs/ts/declaration/interface.ts.snap | 1 + .../tests/specs/ts/declaration/variable_declaration.ts.snap | 1 + crates/biome_js_formatter/tests/specs/ts/declare.ts.snap | 1 + crates/biome_js_formatter/tests/specs/ts/decoartors.ts.snap | 1 + .../tests/specs/ts/decorators/class_members.ts.snap | 1 + .../ts/enum/trailing_commas_es5/enum_trailing_commas.ts.snap | 2 ++ .../ts/enum/trailing_commas_none/enum_trailing_commas.ts.snap | 2 ++ .../tests/specs/ts/expression/as_expression.ts.snap | 1 + .../bracket-spacing/expression_bracket_spacing.ts.snap | 2 ++ .../tests/specs/ts/expression/non_null_expression.ts.snap | 1 + .../tests/specs/ts/expression/type_assertion_expression.ts.snap | 1 + .../tests/specs/ts/expression/type_expression.ts.snap | 1 + .../tests/specs/ts/expression/type_member.ts.snap | 1 + .../parameters/line_width_100/function_parameters.ts.snap | 2 ++ .../parameters/line_width_120/function_parameters.ts.snap | 2 ++ .../trailing_commas/es5/function_trailing_commas.ts.snap | 2 ++ .../trailing_commas/none/function_trailing_commas.ts.snap | 2 ++ crates/biome_js_formatter/tests/specs/ts/issue1511.ts.snap | 1 + .../tests/specs/ts/module/export_clause.ts.snap | 1 + .../tests/specs/ts/module/external_module_reference.ts.snap | 1 + .../tests/specs/ts/module/import_type/import_types.ts.snap | 2 ++ .../tests/specs/ts/module/module_declaration.ts.snap | 1 + .../tests/specs/ts/module/qualified_module_name.ts.snap | 1 + crates/biome_js_formatter/tests/specs/ts/no-semi/class.ts.snap | 2 ++ .../biome_js_formatter/tests/specs/ts/no-semi/non-null.ts.snap | 2 ++ .../tests/specs/ts/no-semi/statements.ts.snap | 2 ++ crates/biome_js_formatter/tests/specs/ts/no-semi/types.ts.snap | 2 ++ .../tests/specs/ts/object/expand/expand-never.ts.snap | 2 ++ crates/biome_js_formatter/tests/specs/ts/object/objects.ts.snap | 1 + .../object/trailing_commas_es5/object_trailing_commas.ts.snap | 2 ++ .../object/trailing_commas_none/object_trailing_commas.ts.snap | 2 ++ .../issue-1356/parameter_type_annotation_semicolon.ts.snap | 2 ++ .../tests/specs/ts/parameters/parameters.ts.snap | 1 + crates/biome_js_formatter/tests/specs/ts/parenthesis.ts.snap | 1 + .../biome_js_formatter/tests/specs/ts/simple_arguments.ts.snap | 1 + .../tests/specs/ts/statement/empty_block.ts.snap | 1 + .../tests/specs/ts/statement/enum_statement.ts.snap | 1 + .../specs/ts/string/quotePreserve/parameter_quotes.ts.snap | 2 ++ .../tests/specs/ts/string/quoteSingle/parameter_quotes.ts.snap | 2 ++ crates/biome_js_formatter/tests/specs/ts/suppressions.ts.snap | 1 + .../biome_js_formatter/tests/specs/ts/type/conditional.ts.snap | 1 + .../biome_js_formatter/tests/specs/ts/type/import_type.ts.snap | 1 + .../specs/ts/type/import_type_with_resolution_mode.ts.snap | 1 + .../tests/specs/ts/type/injfer_in_intersection.ts.snap | 1 + .../tests/specs/ts/type/injfer_in_union.ts.snap | 1 + .../tests/specs/ts/type/intersection_type.ts.snap | 1 + .../biome_js_formatter/tests/specs/ts/type/mapped_type.ts.snap | 1 + .../tests/specs/ts/type/qualified_name.ts.snap | 1 + .../tests/specs/ts/type/template_type.ts.snap | 1 + .../ts/type/trailing-commas/es5/type_trailing_commas.ts.snap | 2 ++ .../ts/type/trailing-commas/none/type_trailing_commas.ts.snap | 2 ++ .../tests/specs/ts/type/type_alias/issue-8774.ts.snap | 1 + .../biome_js_formatter/tests/specs/ts/type/union_type.ts.snap | 1 + .../tests/specs/ts/union/nested_union/nested_union.ts.snap | 2 ++ .../tests/specs/tsx/arrow/issue-2736.tsx.snap | 1 + crates/biome_js_formatter/tests/specs/tsx/smoke.tsx.snap | 1 + crates/biome_js_formatter/tests/specs/tsx/type_param.tsx.snap | 1 + .../tests/specs/json/array/empty_line.json.snap | 1 + .../tests/specs/json/array/fill_layout.json.snap | 1 + .../tests/specs/json/array/layout.json.snap | 1 + .../tests/specs/json/array/multi_line.json.snap | 1 + .../tests/specs/json/array/nested.json.snap | 1 + .../tests/specs/json/array/one_per_line_layout.json.snap | 1 + .../tests/specs/json/array/single_line.json.snap | 1 + .../specs/json/bracket-spacing/bracket-spacing-none.json.snap | 2 ++ .../tests/specs/json/comments/empty_with_comments.json.snap | 1 + .../tests/specs/json/comments/multiline.json.snap | 1 + crates/biome_json_formatter/tests/specs/json/empty.json.snap | 1 + .../tests/specs/json/expand-never/expand-never.json.snap | 2 ++ .../tests/specs/json/expand/nested_array.json.snap | 2 ++ .../tests/specs/json/expand/nested_object.json.snap | 2 ++ .../tests/specs/json/global_suppression.jsonc.snap | 1 + crates/biome_json_formatter/tests/specs/json/number.json.snap | 1 + .../tests/specs/json/object/complex.json.snap | 1 + .../tests/specs/json/object/missing_value.json.snap | 1 + .../tests/specs/json/object/multi_line.json.snap | 1 + .../tests/specs/json/object/multi_line_long.json.snap | 1 + .../tests/specs/json/object/one_line.json.snap | 1 + .../tests/specs/json/object/one_line_long.json.snap | 1 + .../tests/specs/json/object/string.json.snap | 1 + crates/biome_json_formatter/tests/specs/json/smoke.json.snap | 1 + .../tests/specs/json/trailing_comma_never/classic.json.snap | 2 ++ .../tests/specs/json/trailing_comma_never/classic.jsonc.snap | 2 ++ .../tests/specs/json/trailing_newline/simple.json.snap | 2 ++ .../tests/specs/json/undefined/utf8_bom_empty_object.json.snap | 1 + 395 files changed, 501 insertions(+) diff --git a/crates/biome_configuration/tests/invalid/formatter_extraneous_field.json.snap b/crates/biome_configuration/tests/invalid/formatter_extraneous_field.json.snap index f5547d95d52a..49ad6b3cdda1 100644 --- a/crates/biome_configuration/tests/invalid/formatter_extraneous_field.json.snap +++ b/crates/biome_configuration/tests/invalid/formatter_extraneous_field.json.snap @@ -24,6 +24,7 @@ formatter_extraneous_field.json:3:3 deserialize ━━━━━━━━━━ - attributePosition - bracketSameLine - bracketSpacing + - delimiterSpacing - expand - trailingNewline - useEditorconfig diff --git a/crates/biome_configuration/tests/invalid/formatter_quote_style.json.snap b/crates/biome_configuration/tests/invalid/formatter_quote_style.json.snap index 38e4f3d4b121..6b043272a3c6 100644 --- a/crates/biome_configuration/tests/invalid/formatter_quote_style.json.snap +++ b/crates/biome_configuration/tests/invalid/formatter_quote_style.json.snap @@ -24,6 +24,7 @@ formatter_quote_style.json:3:9 deserialize ━━━━━━━━━━━━ - attributePosition - bracketSameLine - bracketSpacing + - delimiterSpacing - expand - trailingNewline - useEditorconfig diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/charset.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/charset.css.snap index ccbe87c4f934..c072945f3826 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/charset.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/charset.css.snap @@ -26,6 +26,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/color_profile.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/color_profile.css.snap index c600d2cdb491..db3d01150809 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/color_profile.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/color_profile.css.snap @@ -29,6 +29,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/container.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/container.css.snap index 966ff12bee51..db7ed1b63446 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/container.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/container.css.snap @@ -89,6 +89,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/counter_style.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/counter_style.css.snap index d13fc40aedbc..83d3532e2ab5 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/counter_style.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/counter_style.css.snap @@ -89,6 +89,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/document.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/document.css.snap index eaf75fb1f00b..9b1fc45b8651 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/document.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/document.css.snap @@ -45,6 +45,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/font_face.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/font_face.css.snap index 0ee449bc63a1..0346ae2b6aef 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/font_face.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/font_face.css.snap @@ -109,6 +109,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/font_feature_values.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/font_feature_values.css.snap index 646d5363c027..f8822ec3b6a5 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/font_feature_values.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/font_feature_values.css.snap @@ -73,6 +73,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/function.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/function.css.snap index 586bb5385251..367fb0b6e267 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/function.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/function.css.snap @@ -75,6 +75,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/import.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/import.css.snap index 40c49291861f..875801a35976 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/import.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/import.css.snap @@ -187,6 +187,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/keyframes.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/keyframes.css.snap index 03ae3f4f3bff..8ced3a944f00 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/keyframes.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/keyframes.css.snap @@ -269,6 +269,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/layer.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/layer.css.snap index add9dc2fa9e0..a6f70fb3f8f3 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/layer.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/layer.css.snap @@ -98,6 +98,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/media.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/media.css.snap index 2163bc07200b..deb6c63c3fa5 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/media.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/media.css.snap @@ -67,6 +67,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/namespace.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/namespace.css.snap index 17ea9160b44e..4a525a48c890 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/namespace.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/namespace.css.snap @@ -29,6 +29,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/page.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/page.css.snap index 4ae012e5f99f..753bfeb1113d 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/page.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/page.css.snap @@ -95,6 +95,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/page_complex.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/page_complex.css.snap index 50a2d905f530..531c666085da 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/page_complex.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/page_complex.css.snap @@ -146,6 +146,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/property.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/property.css.snap index 3797cdce6cae..46c04df35a1d 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/property.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/property.css.snap @@ -28,6 +28,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/scope.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/scope.css.snap index 6b3c0b5248d3..2be3257750c2 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/scope.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/scope.css.snap @@ -88,6 +88,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/starting_style.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/starting_style.css.snap index 91e3b87199f4..adf5cea6c6f9 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/starting_style.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/starting_style.css.snap @@ -39,6 +39,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/supports.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/supports.css.snap index b33ba2fc056f..857fdfbf0969 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/supports.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/supports.css.snap @@ -199,6 +199,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/supports_complex.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/supports_complex.css.snap index ca60d0279b0b..6a96380ed8b3 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/supports_complex.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/supports_complex.css.snap @@ -64,6 +64,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/tailwind/source-not.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/tailwind/source-not.css.snap index 307b79857110..f40e65f7a92c 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/tailwind/source-not.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/tailwind/source-not.css.snap @@ -22,6 +22,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -38,6 +39,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/unknown.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/unknown.css.snap index d32bc1d14d06..f8460beab082 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/unknown.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/unknown.css.snap @@ -28,6 +28,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/atrule/value.css.snap b/crates/biome_css_formatter/tests/specs/css/atrule/value.css.snap index 839a577d7c38..c2c8dda32012 100644 --- a/crates/biome_css_formatter/tests/specs/css/atrule/value.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/atrule/value.css.snap @@ -61,6 +61,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/attr.css.snap b/crates/biome_css_formatter/tests/specs/css/attr.css.snap index c91745539a0f..5d58ec434207 100644 --- a/crates/biome_css_formatter/tests/specs/css/attr.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/attr.css.snap @@ -71,6 +71,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/block.css.snap b/crates/biome_css_formatter/tests/specs/css/block.css.snap index 734d681baf54..f4f854fcfbbe 100644 --- a/crates/biome_css_formatter/tests/specs/css/block.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/block.css.snap @@ -41,6 +41,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/casing.css.snap b/crates/biome_css_formatter/tests/specs/css/casing.css.snap index 2acd579c41db..640fd7bc451a 100644 --- a/crates/biome_css_formatter/tests/specs/css/casing.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/casing.css.snap @@ -49,6 +49,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/color/functional_colors.css.snap b/crates/biome_css_formatter/tests/specs/css/color/functional_colors.css.snap index b2a8b7a3dbce..3f17d3e17abf 100644 --- a/crates/biome_css_formatter/tests/specs/css/color/functional_colors.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/color/functional_colors.css.snap @@ -51,6 +51,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/color/hex_colors.css.snap b/crates/biome_css_formatter/tests/specs/css/color/hex_colors.css.snap index 50843ba443f4..a65f56f204f2 100644 --- a/crates/biome_css_formatter/tests/specs/css/color/hex_colors.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/color/hex_colors.css.snap @@ -27,6 +27,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/comma_separated_values.css.snap b/crates/biome_css_formatter/tests/specs/css/comma_separated_values.css.snap index 6d5cb81f9f3a..1135ef91f899 100644 --- a/crates/biome_css_formatter/tests/specs/css/comma_separated_values.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/comma_separated_values.css.snap @@ -28,6 +28,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/composes.css.snap b/crates/biome_css_formatter/tests/specs/css/composes.css.snap index 7396ff8f18c5..b03e2fc25747 100644 --- a/crates/biome_css_formatter/tests/specs/css/composes.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/composes.css.snap @@ -52,6 +52,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/declaration_empty.css.snap b/crates/biome_css_formatter/tests/specs/css/declaration_empty.css.snap index b89c4cc1d92c..a7b6d47b2661 100644 --- a/crates/biome_css_formatter/tests/specs/css/declaration_empty.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/declaration_empty.css.snap @@ -67,6 +67,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/declaration_list.css.snap b/crates/biome_css_formatter/tests/specs/css/declaration_list.css.snap index 28074dd4424b..d8855ea8e62a 100644 --- a/crates/biome_css_formatter/tests/specs/css/declaration_list.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/declaration_list.css.snap @@ -73,6 +73,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/dimensions.css.snap b/crates/biome_css_formatter/tests/specs/css/dimensions.css.snap index 6c06fcdb4534..61153ab89c5b 100644 --- a/crates/biome_css_formatter/tests/specs/css/dimensions.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/dimensions.css.snap @@ -26,6 +26,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/empty.css.snap b/crates/biome_css_formatter/tests/specs/css/empty.css.snap index 5a2b0e3762e3..7d86c6862607 100644 --- a/crates/biome_css_formatter/tests/specs/css/empty.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/empty.css.snap @@ -21,6 +21,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/functions.css.snap b/crates/biome_css_formatter/tests/specs/css/functions.css.snap index 31d0291d7917..ce6524c88d64 100644 --- a/crates/biome_css_formatter/tests/specs/css/functions.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/functions.css.snap @@ -32,6 +32,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/global_suppression.css.snap b/crates/biome_css_formatter/tests/specs/css/global_suppression.css.snap index cd9ea5eb47fa..afa348b06677 100644 --- a/crates/biome_css_formatter/tests/specs/css/global_suppression.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/global_suppression.css.snap @@ -31,6 +31,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/if.css.snap b/crates/biome_css_formatter/tests/specs/css/if.css.snap index b3dc50382a06..254b4685abbf 100644 --- a/crates/biome_css_formatter/tests/specs/css/if.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/if.css.snap @@ -450,6 +450,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/important.css.snap b/crates/biome_css_formatter/tests/specs/css/important.css.snap index 3aef74a164aa..6e61c4f4f898 100644 --- a/crates/biome_css_formatter/tests/specs/css/important.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/important.css.snap @@ -27,6 +27,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/issue_3229.css.snap b/crates/biome_css_formatter/tests/specs/css/issue_3229.css.snap index 8f1a9e363042..5c25c27148b0 100644 --- a/crates/biome_css_formatter/tests/specs/css/issue_3229.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/issue_3229.css.snap @@ -60,6 +60,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/issue_4298.css.snap b/crates/biome_css_formatter/tests/specs/css/issue_4298.css.snap index 5b3caf172a96..8bf9884fd4e4 100644 --- a/crates/biome_css_formatter/tests/specs/css/issue_4298.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/issue_4298.css.snap @@ -29,6 +29,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/issue_8636.css.snap b/crates/biome_css_formatter/tests/specs/css/issue_8636.css.snap index ae7a920daf31..ae2c9b86331a 100644 --- a/crates/biome_css_formatter/tests/specs/css/issue_8636.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/issue_8636.css.snap @@ -29,6 +29,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/namespace.css.snap b/crates/biome_css_formatter/tests/specs/css/namespace.css.snap index 7763bc906662..7c1040744135 100644 --- a/crates/biome_css_formatter/tests/specs/css/namespace.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/namespace.css.snap @@ -55,6 +55,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/nesting/conditional_at_rule.css.snap b/crates/biome_css_formatter/tests/specs/css/nesting/conditional_at_rule.css.snap index d157e6f329cc..1397151e8f08 100644 --- a/crates/biome_css_formatter/tests/specs/css/nesting/conditional_at_rule.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/nesting/conditional_at_rule.css.snap @@ -194,6 +194,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/nesting/nesting.css.snap b/crates/biome_css_formatter/tests/specs/css/nesting/nesting.css.snap index 919a55ca9278..16b0340c3f91 100644 --- a/crates/biome_css_formatter/tests/specs/css/nesting/nesting.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/nesting/nesting.css.snap @@ -306,6 +306,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/nesting/nesting_1.css.snap b/crates/biome_css_formatter/tests/specs/css/nesting/nesting_1.css.snap index 6f239c035a72..4a5e9e341eb4 100644 --- a/crates/biome_css_formatter/tests/specs/css/nesting/nesting_1.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/nesting/nesting_1.css.snap @@ -46,6 +46,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/number.css.snap b/crates/biome_css_formatter/tests/specs/css/number.css.snap index 1cdf9d3ab47f..b660a9fe5b60 100644 --- a/crates/biome_css_formatter/tests/specs/css/number.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/number.css.snap @@ -44,6 +44,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/properties/all.css.snap b/crates/biome_css_formatter/tests/specs/css/properties/all.css.snap index 66c2c8de5ad8..58720c5ce6d6 100644 --- a/crates/biome_css_formatter/tests/specs/css/properties/all.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/properties/all.css.snap @@ -54,6 +54,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/properties/border.css.snap b/crates/biome_css_formatter/tests/specs/css/properties/border.css.snap index d4de290264c1..43b76e383ed8 100644 --- a/crates/biome_css_formatter/tests/specs/css/properties/border.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/properties/border.css.snap @@ -60,6 +60,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/properties/custom.css.snap b/crates/biome_css_formatter/tests/specs/css/properties/custom.css.snap index 5370c568380b..2d67cd8f6451 100644 --- a/crates/biome_css_formatter/tests/specs/css/properties/custom.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/properties/custom.css.snap @@ -36,6 +36,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/properties/generic.css.snap b/crates/biome_css_formatter/tests/specs/css/properties/generic.css.snap index 1accd6529328..8ce0652567c2 100644 --- a/crates/biome_css_formatter/tests/specs/css/properties/generic.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/properties/generic.css.snap @@ -36,6 +36,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/properties/grid.css.snap b/crates/biome_css_formatter/tests/specs/css/properties/grid.css.snap index 01bf9b546859..43fc38b5702b 100644 --- a/crates/biome_css_formatter/tests/specs/css/properties/grid.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/properties/grid.css.snap @@ -46,6 +46,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/properties/unicode_range.css.snap b/crates/biome_css_formatter/tests/specs/css/properties/unicode_range.css.snap index a02720449629..99bc8faba11f 100644 --- a/crates/biome_css_formatter/tests/specs/css/properties/unicode_range.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/properties/unicode_range.css.snap @@ -80,6 +80,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/properties/z-index.css.snap b/crates/biome_css_formatter/tests/specs/css/properties/z-index.css.snap index 0be2d3606196..76c65b353c73 100644 --- a/crates/biome_css_formatter/tests/specs/css/properties/z-index.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/properties/z-index.css.snap @@ -33,6 +33,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/is.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/is.css.snap index c1c3025883eb..cea4d6d9db0a 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/is.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/is.css.snap @@ -48,6 +48,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/not.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/not.css.snap index 816c0c074eb3..ea0651011366 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/not.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/not.css.snap @@ -32,6 +32,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_compound_selector.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_compound_selector.css.snap index 9f6ebca0af60..a335df4a6ea8 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_compound_selector.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_compound_selector.css.snap @@ -32,6 +32,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_compound_selector_list.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_compound_selector_list.css.snap index 73a1f1e67eca..be8a9d59aac2 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_compound_selector_list.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_compound_selector_list.css.snap @@ -28,6 +28,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_custom_identifier_list.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_custom_identifier_list.css.snap index d3b99ee0f075..402787832f00 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_custom_identifier_list.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_custom_identifier_list.css.snap @@ -62,6 +62,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_nth.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_nth.css.snap index abf4fad49c0b..9065012f5ca0 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_nth.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_nth.css.snap @@ -57,6 +57,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_relative_selector_list.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_relative_selector_list.css.snap index 223923f59200..a74e8b398f7c 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_relative_selector_list.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_relative_selector_list.css.snap @@ -33,6 +33,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_selector.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_selector.css.snap index 9366f85a3f99..c155119824b8 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_selector.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_selector.css.snap @@ -39,6 +39,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_state.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_state.css.snap index 81ed2d23f058..6063e07930fe 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_state.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_state.css.snap @@ -34,6 +34,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_value_list.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_value_list.css.snap index a8d0640fca1f..f60b5583ec86 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_value_list.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_function_value_list.css.snap @@ -33,6 +33,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_identifier.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_identifier.css.snap index 3e1b0722ae5d..28b3ced39970 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_identifier.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_class_identifier.css.snap @@ -24,6 +24,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_element_selector.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_element_selector.css.snap index bc6ac78fe2f3..92b38eae4ff9 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_element_selector.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/pseudo_element_selector.css.snap @@ -46,6 +46,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/pseudo/where.css.snap b/crates/biome_css_formatter/tests/specs/css/pseudo/where.css.snap index a9572a82cabb..85221b3533df 100644 --- a/crates/biome_css_formatter/tests/specs/css/pseudo/where.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/pseudo/where.css.snap @@ -42,6 +42,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/quote_style/normalize_quotes.css.snap b/crates/biome_css_formatter/tests/specs/css/quote_style/normalize_quotes.css.snap index 63282a30fd27..b6812ab569ce 100644 --- a/crates/biome_css_formatter/tests/specs/css/quote_style/normalize_quotes.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/quote_style/normalize_quotes.css.snap @@ -45,6 +45,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -85,6 +86,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Single Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/range/between_rules.css.snap b/crates/biome_css_formatter/tests/specs/css/range/between_rules.css.snap index 923958722eb4..07bda88ff621 100644 --- a/crates/biome_css_formatter/tests/specs/css/range/between_rules.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/range/between_rules.css.snap @@ -36,6 +36,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/range/keyframes.css.snap b/crates/biome_css_formatter/tests/specs/css/range/keyframes.css.snap index 45747c25816f..f62629b7a656 100644 --- a/crates/biome_css_formatter/tests/specs/css/range/keyframes.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/range/keyframes.css.snap @@ -30,6 +30,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/range/mid_value.css.snap b/crates/biome_css_formatter/tests/specs/css/range/mid_value.css.snap index e818c04d2d97..0ebb5371597b 100644 --- a/crates/biome_css_formatter/tests/specs/css/range/mid_value.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/range/mid_value.css.snap @@ -24,6 +24,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/range/selector_list.css.snap b/crates/biome_css_formatter/tests/specs/css/range/selector_list.css.snap index dd6646e4091a..b68bb0677ef7 100644 --- a/crates/biome_css_formatter/tests/specs/css/range/selector_list.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/range/selector_list.css.snap @@ -21,6 +21,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/range/single_declaration.css.snap b/crates/biome_css_formatter/tests/specs/css/range/single_declaration.css.snap index 913c7e3de66b..7a71f4b7c60b 100644 --- a/crates/biome_css_formatter/tests/specs/css/range/single_declaration.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/range/single_declaration.css.snap @@ -27,6 +27,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/range/single_rule.css.snap b/crates/biome_css_formatter/tests/specs/css/range/single_rule.css.snap index 71173c444695..456d47ed9dcc 100644 --- a/crates/biome_css_formatter/tests/specs/css/range/single_rule.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/range/single_rule.css.snap @@ -25,6 +25,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/range/single_value.css.snap b/crates/biome_css_formatter/tests/specs/css/range/single_value.css.snap index b24a6c445192..6688caabbfdc 100644 --- a/crates/biome_css_formatter/tests/specs/css/range/single_value.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/range/single_value.css.snap @@ -25,6 +25,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/selectors/attribute_selector.css.snap b/crates/biome_css_formatter/tests/specs/css/selectors/attribute_selector.css.snap index 9ce59e024adb..f5939e5a1e2c 100644 --- a/crates/biome_css_formatter/tests/specs/css/selectors/attribute_selector.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/selectors/attribute_selector.css.snap @@ -134,6 +134,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/selectors/class_selector.css.snap b/crates/biome_css_formatter/tests/specs/css/selectors/class_selector.css.snap index 6ab511bd4e06..3c21883fa13b 100644 --- a/crates/biome_css_formatter/tests/specs/css/selectors/class_selector.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/selectors/class_selector.css.snap @@ -38,6 +38,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/selectors/complex_selector.css.snap b/crates/biome_css_formatter/tests/specs/css/selectors/complex_selector.css.snap index 3f2bc71ec397..8bccab1b74d8 100644 --- a/crates/biome_css_formatter/tests/specs/css/selectors/complex_selector.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/selectors/complex_selector.css.snap @@ -35,6 +35,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/selectors/id_selector.css.snap b/crates/biome_css_formatter/tests/specs/css/selectors/id_selector.css.snap index 7687ae0e6bf1..447b8f350ff0 100644 --- a/crates/biome_css_formatter/tests/specs/css/selectors/id_selector.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/selectors/id_selector.css.snap @@ -38,6 +38,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/selectors/pseudo_class/pseudo_class_has.css.snap b/crates/biome_css_formatter/tests/specs/css/selectors/pseudo_class/pseudo_class_has.css.snap index 63902d4784df..d528322585fa 100644 --- a/crates/biome_css_formatter/tests/specs/css/selectors/pseudo_class/pseudo_class_has.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/selectors/pseudo_class/pseudo_class_has.css.snap @@ -38,6 +38,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/selectors/selector_lists.css.snap b/crates/biome_css_formatter/tests/specs/css/selectors/selector_lists.css.snap index 8399c38fac76..04aaacfb384f 100644 --- a/crates/biome_css_formatter/tests/specs/css/selectors/selector_lists.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/selectors/selector_lists.css.snap @@ -62,6 +62,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/selectors/type_selector.css.snap b/crates/biome_css_formatter/tests/specs/css/selectors/type_selector.css.snap index 7281337c6a10..d5306b9982bb 100644 --- a/crates/biome_css_formatter/tests/specs/css/selectors/type_selector.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/selectors/type_selector.css.snap @@ -34,6 +34,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/simple.css.snap b/crates/biome_css_formatter/tests/specs/css/simple.css.snap index 0e6c4cdea018..3536c95e4e7c 100644 --- a/crates/biome_css_formatter/tests/specs/css/simple.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/simple.css.snap @@ -25,6 +25,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/tailwind/long-apply.css.snap b/crates/biome_css_formatter/tests/specs/css/tailwind/long-apply.css.snap index 856e15a51122..74d83850395f 100644 --- a/crates/biome_css_formatter/tests/specs/css/tailwind/long-apply.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/tailwind/long-apply.css.snap @@ -24,6 +24,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -47,6 +48,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/tailwind/plugin-no-options.css.snap b/crates/biome_css_formatter/tests/specs/css/tailwind/plugin-no-options.css.snap index 5ba948ad9619..8f431cd7ccc2 100644 --- a/crates/biome_css_formatter/tests/specs/css/tailwind/plugin-no-options.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/tailwind/plugin-no-options.css.snap @@ -22,6 +22,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -38,6 +39,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/tailwind/plugin-with-options.css.snap b/crates/biome_css_formatter/tests/specs/css/tailwind/plugin-with-options.css.snap index 470985320df8..63cf1b9fa0cf 100644 --- a/crates/biome_css_formatter/tests/specs/css/tailwind/plugin-with-options.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/tailwind/plugin-with-options.css.snap @@ -25,6 +25,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -44,6 +45,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/tailwind/shadcn-default.css.snap b/crates/biome_css_formatter/tests/specs/css/tailwind/shadcn-default.css.snap index d6cf498b8c04..a2c839ac0980 100644 --- a/crates/biome_css_formatter/tests/specs/css/tailwind/shadcn-default.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/tailwind/shadcn-default.css.snap @@ -168,6 +168,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -330,6 +331,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/tailwind/source-inline.css.snap b/crates/biome_css_formatter/tests/specs/css/tailwind/source-inline.css.snap index e4ea6427a85b..ef3416a9aebb 100644 --- a/crates/biome_css_formatter/tests/specs/css/tailwind/source-inline.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/tailwind/source-inline.css.snap @@ -23,6 +23,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -45,6 +46,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/tailwind/utility.css.snap b/crates/biome_css_formatter/tests/specs/css/tailwind/utility.css.snap index fa79305214a0..82c043804b25 100644 --- a/crates/biome_css_formatter/tests/specs/css/tailwind/utility.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/tailwind/utility.css.snap @@ -41,6 +41,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -85,6 +86,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/trailing_newline/simple.css.snap b/crates/biome_css_formatter/tests/specs/css/trailing_newline/simple.css.snap index 982f859fd4ae..651ec2117586 100644 --- a/crates/biome_css_formatter/tests/specs/css/trailing_newline/simple.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/trailing_newline/simple.css.snap @@ -25,6 +25,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- @@ -44,6 +45,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: false ----- diff --git a/crates/biome_css_formatter/tests/specs/css/units.css.snap b/crates/biome_css_formatter/tests/specs/css/units.css.snap index beeb91d89c14..44a52011008f 100644 --- a/crates/biome_css_formatter/tests/specs/css/units.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/units.css.snap @@ -68,6 +68,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/url.css.snap b/crates/biome_css_formatter/tests/specs/css/url.css.snap index 25f11c379546..c5cfd4660315 100644 --- a/crates/biome_css_formatter/tests/specs/css/url.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/url.css.snap @@ -42,6 +42,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/value_fill.css.snap b/crates/biome_css_formatter/tests/specs/css/value_fill.css.snap index d7b5866790ea..c8ca3261242f 100644 --- a/crates/biome_css_formatter/tests/specs/css/value_fill.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/value_fill.css.snap @@ -23,6 +23,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/value_one_group_per_line.css.snap b/crates/biome_css_formatter/tests/specs/css/value_one_group_per_line.css.snap index 811e1b63e423..4bee5cca0bd2 100644 --- a/crates/biome_css_formatter/tests/specs/css/value_one_group_per_line.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/value_one_group_per_line.css.snap @@ -52,6 +52,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/value_one_per_line.css.snap b/crates/biome_css_formatter/tests/specs/css/value_one_per_line.css.snap index 353210e394fa..b1246b524df1 100644 --- a/crates/biome_css_formatter/tests/specs/css/value_one_per_line.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/value_one_per_line.css.snap @@ -38,6 +38,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_css_formatter/tests/specs/css/variables.css.snap b/crates/biome_css_formatter/tests/specs/css/variables.css.snap index 8109386d3b45..78807f47576d 100644 --- a/crates/biome_css_formatter/tests/specs/css/variables.css.snap +++ b/crates/biome_css_formatter/tests/specs/css/variables.css.snap @@ -62,6 +62,7 @@ Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/array_nested.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/array_nested.js.snap index 1192cdc1f71e..001668c27fb6 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/array_nested.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/array_nested.js.snap @@ -68,6 +68,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/binding_pattern.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/binding_pattern.js.snap index bcd3d3e6fb44..0c43ebe4708b 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/binding_pattern.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/binding_pattern.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/empty_lines.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/empty_lines.js.snap index d3dd0e0fcf52..40776a136a52 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/empty_lines.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/empty_lines.js.snap @@ -39,6 +39,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/expand/expand-always.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/expand/expand-always.js.snap index 0aaebf97aef3..605ff761782c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/expand/expand-always.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/expand/expand-always.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -78,6 +79,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Always diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/holes_comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/holes_comments.js.snap index dd84eafc2279..fcda3691a8e4 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/holes_comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/holes_comments.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/spaces.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/spaces.js.snap index 94f89e8fcf28..1c3e2dc74f46 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/spaces.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/spaces.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/spread.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/spread.js.snap index 8f0ff536f854..f64b77d0de67 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/spread.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/spread.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/trailing-commas/es5/array_trailing_commas.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/trailing-commas/es5/array_trailing_commas.js.snap index 23853f2801b0..cec6e1b308cb 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/trailing-commas/es5/array_trailing_commas.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/trailing-commas/es5/array_trailing_commas.js.snap @@ -37,6 +37,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -74,6 +75,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/array/trailing-commas/none/array_trailing_commas.js.snap b/crates/biome_js_formatter/tests/specs/js/module/array/trailing-commas/none/array_trailing_commas.js.snap index 355173a73f45..23e802628b2a 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/array/trailing-commas/none/array_trailing_commas.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/array/trailing-commas/none/array_trailing_commas.js.snap @@ -37,6 +37,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -74,6 +75,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow-comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow-comments.js.snap index 38ed2241ce4a..e59757b8846d 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow-comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow-comments.js.snap @@ -48,6 +48,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -93,6 +94,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_chain_comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_chain_comments.js.snap index 848e304f6b0c..9a5b2f6d3a1f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_chain_comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_chain_comments.js.snap @@ -36,6 +36,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -77,6 +78,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_function.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_function.js.snap index c910996ecfa1..47704905f95a 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_function.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_function.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -68,6 +69,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_nested.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_nested.js.snap index 980d96af8f8e..8b425e20117c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_nested.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_nested.js.snap @@ -54,6 +54,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -105,6 +106,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_test_callback.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_test_callback.js.snap index cb70392969cd..d6b86a6c0aac 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_test_callback.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/arrow_test_callback.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -65,6 +66,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/assignment_binding_line_break.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/assignment_binding_line_break.js.snap index 564825038487..e079b53c9024 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/assignment_binding_line_break.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/assignment_binding_line_break.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -68,6 +69,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/call.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/call.js.snap index 1fc1ee2db63c..a5e99c454001 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/call.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/call.js.snap @@ -71,6 +71,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -149,6 +150,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/curried_indents.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/curried_indents.js.snap index 463d50e31b93..6c1692098fcf 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/curried_indents.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/curried_indents.js.snap @@ -70,6 +70,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -142,6 +143,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/currying.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/currying.js.snap index 5a330a62d026..22c00e7cdf3c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/currying.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/currying.js.snap @@ -77,6 +77,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -172,6 +173,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/arrow/params.js.snap b/crates/biome_js_formatter/tests/specs/js/module/arrow/params.js.snap index 3f896c8763d1..e8de85eb7b10 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/arrow/params.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/arrow/params.js.snap @@ -353,6 +353,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -685,6 +686,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/assignment/array-assignment-holes.js.snap b/crates/biome_js_formatter/tests/specs/js/module/assignment/array-assignment-holes.js.snap index 3f22fbb3db90..95ed3af02863 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/assignment/array-assignment-holes.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/assignment/array-assignment-holes.js.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/assignment/assignment.js.snap b/crates/biome_js_formatter/tests/specs/js/module/assignment/assignment.js.snap index 732fa838caca..b39b7cc0561f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/assignment/assignment.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/assignment/assignment.js.snap @@ -196,6 +196,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/assignment/assignment_ignore.js.snap b/crates/biome_js_formatter/tests/specs/js/module/assignment/assignment_ignore.js.snap index 96fe6a4f969c..9f69eb5050eb 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/assignment/assignment_ignore.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/assignment/assignment_ignore.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/binding/array-binding-holes.js.snap b/crates/biome_js_formatter/tests/specs/js/module/binding/array-binding-holes.js.snap index 0ade617c6477..cba00d698b01 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/binding/array-binding-holes.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/binding/array-binding-holes.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -54,6 +55,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/binding/array_binding.js.snap b/crates/biome_js_formatter/tests/specs/js/module/binding/array_binding.js.snap index 6e3ef6a70d30..e45b2eef8a87 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/binding/array_binding.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/binding/array_binding.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -61,6 +62,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/binding/identifier_binding.js.snap b/crates/biome_js_formatter/tests/specs/js/module/binding/identifier_binding.js.snap index 6cb80baacecf..4160c9fc96c7 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/binding/identifier_binding.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/binding/identifier_binding.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -59,6 +60,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/binding/nested_bindings.js.snap b/crates/biome_js_formatter/tests/specs/js/module/binding/nested_bindings.js.snap index 20d3f6e39cdb..ee26a45efe16 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/binding/nested_bindings.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/binding/nested_bindings.js.snap @@ -78,6 +78,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -201,6 +202,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/binding/object_binding.js.snap b/crates/biome_js_formatter/tests/specs/js/module/binding/object_binding.js.snap index c41f7168eca5..c57b354c2f4e 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/binding/object_binding.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/binding/object_binding.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -69,6 +70,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/bom_character.js.snap b/crates/biome_js_formatter/tests/specs/js/module/bom_character.js.snap index ca17260113cb..cae711105e5e 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/bom_character.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/bom_character.js.snap @@ -27,6 +27,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/call/call_chain.js.snap b/crates/biome_js_formatter/tests/specs/js/module/call/call_chain.js.snap index b112f3a3379c..24e5d96c0f41 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/call/call_chain.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/call/call_chain.js.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/call/simple_arguments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/call/simple_arguments.js.snap index d136259d0a88..92cc99919df0 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/call/simple_arguments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/call/simple_arguments.js.snap @@ -111,6 +111,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/call_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/call_expression.js.snap index fa8a097c20d6..06a37a4a3320 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/call_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/call_expression.js.snap @@ -96,6 +96,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/class/class.js.snap b/crates/biome_js_formatter/tests/specs/js/module/class/class.js.snap index 8ee62486fb4a..a66ed8b2480b 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/class/class.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/class/class.js.snap @@ -97,6 +97,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/class/class_comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/class/class_comments.js.snap index 0989b78d008f..55c7dce10669 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/class/class_comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/class/class_comments.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/class/private_method.js.snap b/crates/biome_js_formatter/tests/specs/js/module/class/private_method.js.snap index ada0d6a716d4..88a1cb67f84a 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/class/private_method.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/class/private_method.js.snap @@ -43,6 +43,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/comments.js.snap index 8d64569b2111..98252e2394ee 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/comments.js.snap @@ -113,6 +113,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/comments/import_exports.js.snap b/crates/biome_js_formatter/tests/specs/js/module/comments/import_exports.js.snap index 9487a6aa6637..687bdefa6db4 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/comments/import_exports.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/comments/import_exports.js.snap @@ -41,6 +41,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/comments/nested_comments/nested_comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/comments/nested_comments/nested_comments.js.snap index 32312bf137d0..6a6833e98383 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/comments/nested_comments/nested_comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/comments/nested_comments/nested_comments.js.snap @@ -34,6 +34,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -69,6 +70,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/declarations/test_declaration.js.snap b/crates/biome_js_formatter/tests/specs/js/module/declarations/test_declaration.js.snap index 65b71bfa27e5..8fe3e56668e9 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/declarations/test_declaration.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/declarations/test_declaration.js.snap @@ -53,6 +53,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/declarations/variable_declaration.js.snap b/crates/biome_js_formatter/tests/specs/js/module/declarations/variable_declaration.js.snap index 2c531437b3fe..34991d2ff8d4 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/declarations/variable_declaration.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/declarations/variable_declaration.js.snap @@ -292,6 +292,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_call_decorator.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_call_decorator.js.snap index 01ca8625147e..89afeb174a98 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_call_decorator.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_call_decorator.js.snap @@ -119,6 +119,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_mixed.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_mixed.js.snap index a04e6fd46a50..d2be453fe4de 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_mixed.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_mixed.js.snap @@ -119,6 +119,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_simple.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_simple.js.snap index 321622e1e6bd..542dbaedd944 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_simple.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_members_simple.js.snap @@ -119,6 +119,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_simple.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_simple.js.snap index 377ad4292b18..2d177ab5f749 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_simple.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_simple.js.snap @@ -75,6 +75,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_simple_call_decorator.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_simple_call_decorator.js.snap index 8b258c807a2e..cd1554b0ede9 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/class_simple_call_decorator.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/class_simple_call_decorator.js.snap @@ -75,6 +75,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_1.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_1.js.snap index 3dd5c8f875fe..909e5d8d24c0 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_1.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_1.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_2.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_2.js.snap index 2e428817b2dd..2d4be6e36ba5 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_2.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_2.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_3.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_3.js.snap index 1cdda8387b33..996b2511fc3d 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_3.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_3.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_4.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_4.js.snap index 272bdafa602a..eeaf2e06be21 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_4.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/export_default_4.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/expression.js.snap index 9986d8daedcc..a0a7853ceb96 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/expression.js.snap @@ -48,6 +48,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/decorators/multiline.js.snap b/crates/biome_js_formatter/tests/specs/js/module/decorators/multiline.js.snap index 1b75784e8bbd..08928296e8a7 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/decorators/multiline.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/decorators/multiline.js.snap @@ -43,6 +43,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/each/each.js.snap b/crates/biome_js_formatter/tests/specs/js/module/each/each.js.snap index 1e6029548dab..63f156e9f6b2 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/each/each.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/each/each.js.snap @@ -93,6 +93,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/bracket-spacing/export_bracket_spacing.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/bracket-spacing/export_bracket_spacing.js.snap index 4a947fcf04fc..adb19898914f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/bracket-spacing/export_bracket_spacing.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/bracket-spacing/export_bracket_spacing.js.snap @@ -47,6 +47,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -101,6 +102,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/class_clause.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/class_clause.js.snap index 7a9154872ee4..aacc94bf979d 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/class_clause.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/class_clause.js.snap @@ -36,6 +36,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/expression_clause.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/expression_clause.js.snap index 37ba82cb09da..16d2d4c7a56f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/expression_clause.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/expression_clause.js.snap @@ -27,6 +27,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/from_clause.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/from_clause.js.snap index 134c49f7aa8e..6087903179f6 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/from_clause.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/from_clause.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/function_clause.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/function_clause.js.snap index 386ba4b8a01b..481bf6180236 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/function_clause.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/function_clause.js.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/named_clause.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/named_clause.js.snap index 65de17fd4d86..690a0d974f21 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/named_clause.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/named_clause.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/named_from_clause.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/named_from_clause.js.snap index 2368c3fd102c..310bdde4184f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/named_from_clause.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/named_from_clause.js.snap @@ -47,6 +47,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/trailing-commas/es5/export_trailing_commas.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/trailing-commas/es5/export_trailing_commas.js.snap index bb64247743c0..7a8730419394 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/trailing-commas/es5/export_trailing_commas.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/trailing-commas/es5/export_trailing_commas.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -62,6 +63,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/trailing-commas/none/export_trailing_commas.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/trailing-commas/none/export_trailing_commas.js.snap index 39baa8d63438..352f977b343c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/trailing-commas/none/export_trailing_commas.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/trailing-commas/none/export_trailing_commas.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -62,6 +63,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/export/variable_declaration.js.snap b/crates/biome_js_formatter/tests/specs/js/module/export/variable_declaration.js.snap index c14fb03ed791..7894f77ab490 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/export/variable_declaration.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/export/variable_declaration.js.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/binary_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/binary_expression.js.snap index 31384143fd33..b42592e014c4 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/binary_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/binary_expression.js.snap @@ -61,6 +61,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/binary_range_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/binary_range_expression.js.snap index 2bf789851cd0..c5e7849765c4 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/binary_range_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/binary_range_expression.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/binaryish_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/binaryish_expression.js.snap index 16fac247e7b1..ca950320097e 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/binaryish_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/binaryish_expression.js.snap @@ -27,6 +27,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/call_arguments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/call_arguments.js.snap index 9119521718f5..843327f1205d 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/call_arguments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/call_arguments.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/computed-member-expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/computed-member-expression.js.snap index 6c7a86f6bf5c..62f5cfd992ec 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/computed-member-expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/computed-member-expression.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/conditional_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/conditional_expression.js.snap index 206f6707d9a3..3b629c162fb8 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/conditional_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/conditional_expression.js.snap @@ -36,6 +36,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/import_meta_expression/import_meta_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/import_meta_expression/import_meta_expression.js.snap index e0d63fa6a0ab..25fce12ab562 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/import_meta_expression/import_meta_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/import_meta_expression/import_meta_expression.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -65,6 +66,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/literal_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/literal_expression.js.snap index e2f8fa8c0ad5..2027ec5ed5f2 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/literal_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/literal_expression.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/logical_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/logical_expression.js.snap index fb536b6b608d..6834685cfcc5 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/logical_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/logical_expression.js.snap @@ -139,6 +139,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/complex_arguments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/complex_arguments.js.snap index 6bef39ddf956..05fbba3a880c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/complex_arguments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/complex_arguments.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/computed.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/computed.js.snap index 1e6df3fe46cb..c7847e1abb81 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/computed.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/computed.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/inline-merge.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/inline-merge.js.snap index df490b760f4c..4d64ddcd85de 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/inline-merge.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/inline-merge.js.snap @@ -39,6 +39,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/multi_line.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/multi_line.js.snap index fd12db40dfe8..cadfc150a866 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/multi_line.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/multi_line.js.snap @@ -100,6 +100,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/static_member_regex.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/static_member_regex.js.snap index 559f2331241f..85276fbc74e5 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/static_member_regex.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/static_member_regex.js.snap @@ -51,6 +51,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/with_comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/with_comments.js.snap index fe752b8d0869..8df91f02d049 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/with_comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/member-chain/with_comments.js.snap @@ -58,6 +58,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/nested_conditional_expression/nested_conditional_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/nested_conditional_expression/nested_conditional_expression.js.snap index 57a448124fe1..949c8a273a82 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/nested_conditional_expression/nested_conditional_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/nested_conditional_expression/nested_conditional_expression.js.snap @@ -39,6 +39,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -77,6 +78,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/new_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/new_expression.js.snap index fa697e2b206e..d383976599b5 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/new_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/new_expression.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/post_update_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/post_update_expression.js.snap index 1d9899e07862..f3a62b0d366d 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/post_update_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/post_update_expression.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/pre_update_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/pre_update_expression.js.snap index 390181a2dd9f..ff189a6f8de6 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/pre_update_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/pre_update_expression.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/sequence_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/sequence_expression.js.snap index ffe89a49afc1..a3bf61e2aa89 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/sequence_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/sequence_expression.js.snap @@ -60,6 +60,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/static_member_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/static_member_expression.js.snap index fdd8997dbfcf..f20861379ef8 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/static_member_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/static_member_expression.js.snap @@ -47,6 +47,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/this_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/this_expression.js.snap index 041c63b30155..6cd36b27b782 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/this_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/this_expression.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/unary_expression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/unary_expression.js.snap index 6ccab99b33e5..d99b00bfc7fa 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/unary_expression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/unary_expression.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/expression/unary_expression_verbatim_argument.js.snap b/crates/biome_js_formatter/tests/specs/js/module/expression/unary_expression_verbatim_argument.js.snap index 505e1f0f7663..31bf5289e6fd 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/expression/unary_expression_verbatim_argument.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/expression/unary_expression_verbatim_argument.js.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/function/function.js.snap b/crates/biome_js_formatter/tests/specs/js/module/function/function.js.snap index d2ad0e7e57aa..146bba348c8f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/function/function.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/function/function.js.snap @@ -59,6 +59,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/function/function_args.js.snap b/crates/biome_js_formatter/tests/specs/js/module/function/function_args.js.snap index 5e770d6f1dcc..db5f5c2a544d 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/function/function_args.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/function/function_args.js.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/function/function_comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/function/function_comments.js.snap index 15cf76599b37..2bfec8dd22ba 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/function/function_comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/function/function_comments.js.snap @@ -66,6 +66,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/global_suppression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/global_suppression.js.snap index 50bec93f166b..ed53235bae37 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/global_suppression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/global_suppression.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/ident.js.snap b/crates/biome_js_formatter/tests/specs/js/module/ident.js.snap index 74daa97abe20..319a5a7e2d89 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/ident.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/ident.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/bare_import.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/bare_import.js.snap index f9b435dd2b2d..7122545549a0 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/bare_import.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/bare_import.js.snap @@ -50,6 +50,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/bracket-spacing/import_bracket_spacing.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/bracket-spacing/import_bracket_spacing.js.snap index 70930da28d47..c2e0344ef102 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/bracket-spacing/import_bracket_spacing.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/bracket-spacing/import_bracket_spacing.js.snap @@ -57,6 +57,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -109,6 +110,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/default_import.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/default_import.js.snap index 2c44fc4f69c7..c54e3edc8e19 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/default_import.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/default_import.js.snap @@ -40,6 +40,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/import_call.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/import_call.js.snap index 010a10efdba4..aecedd38084f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/import_call.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/import_call.js.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/import_specifiers.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/import_specifiers.js.snap index 1443bdc8761e..a7e11fc581f3 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/import_specifiers.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/import_specifiers.js.snap @@ -59,6 +59,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/named_import_clause.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/named_import_clause.js.snap index 9397dc281426..4746b57aeba7 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/named_import_clause.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/named_import_clause.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/namespace_import.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/namespace_import.js.snap index f300adbe80a7..a657087c7457 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/namespace_import.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/namespace_import.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/trailing-commas/es5/import_trailing_commas.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/trailing-commas/es5/import_trailing_commas.js.snap index 9294c770adc3..2d2768131283 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/trailing-commas/es5/import_trailing_commas.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/trailing-commas/es5/import_trailing_commas.js.snap @@ -57,6 +57,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -122,6 +123,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/import/trailing-commas/none/import_trailing_commas.js.snap b/crates/biome_js_formatter/tests/specs/js/module/import/trailing-commas/none/import_trailing_commas.js.snap index aa175e8d60c5..9984fe150d86 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/import/trailing-commas/none/import_trailing_commas.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/import/trailing-commas/none/import_trailing_commas.js.snap @@ -57,6 +57,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -122,6 +123,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/indent-width/4/example-1.js.snap b/crates/biome_js_formatter/tests/specs/js/module/indent-width/4/example-1.js.snap index 4ed519e503b5..89ae949e8001 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/indent-width/4/example-1.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/indent-width/4/example-1.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -58,6 +59,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/indent-width/4/example-2.js.snap b/crates/biome_js_formatter/tests/specs/js/module/indent-width/4/example-2.js.snap index 3a901beb9064..1648c6f2fb0a 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/indent-width/4/example-2.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/indent-width/4/example-2.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -86,6 +87,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/indent-width/8/example-1.js.snap b/crates/biome_js_formatter/tests/specs/js/module/indent-width/8/example-1.js.snap index e4098272e929..4ec1ed3bb17b 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/indent-width/8/example-1.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/indent-width/8/example-1.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -58,6 +59,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/indent-width/8/example-2.js.snap b/crates/biome_js_formatter/tests/specs/js/module/indent-width/8/example-2.js.snap index b8029b379589..6cb9d257df38 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/indent-width/8/example-2.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/indent-width/8/example-2.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -86,6 +87,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/interpreter-with-trailing-spaces.js.snap b/crates/biome_js_formatter/tests/specs/js/module/interpreter-with-trailing-spaces.js.snap index 8e0cc8baae7b..3693aff181f2 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/interpreter-with-trailing-spaces.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/interpreter-with-trailing-spaces.js.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/interpreter.js.snap b/crates/biome_js_formatter/tests/specs/js/module/interpreter.js.snap index 618ab61f5506..d78e9a0a1c73 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/interpreter.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/interpreter.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/interpreter_with_empty_line.js.snap b/crates/biome_js_formatter/tests/specs/js/module/interpreter_with_empty_line.js.snap index 1cfb4cc1fa45..edc7d11d3ab7 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/interpreter_with_empty_line.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/interpreter_with_empty_line.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/invalid/block_stmt_err.js.snap b/crates/biome_js_formatter/tests/specs/js/module/invalid/block_stmt_err.js.snap index 19b3a058442d..3bce4d9083fa 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/invalid/block_stmt_err.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/invalid/block_stmt_err.js.snap @@ -37,6 +37,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/invalid/if_stmt_err.js.snap b/crates/biome_js_formatter/tests/specs/js/module/invalid/if_stmt_err.js.snap index 43b1971b87b2..3420531786de 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/invalid/if_stmt_err.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/invalid/if_stmt_err.js.snap @@ -43,6 +43,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/line-ending/auto/line_ending.js.snap b/crates/biome_js_formatter/tests/specs/js/module/line-ending/auto/line_ending.js.snap index b37affe9bfea..c9c20865619e 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/line-ending/auto/line_ending.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/line-ending/auto/line_ending.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -86,6 +87,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/line-ending/cr/line_ending.js.snap b/crates/biome_js_formatter/tests/specs/js/module/line-ending/cr/line_ending.js.snap index 0a752da2b0f8..944aede7b153 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/line-ending/cr/line_ending.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/line-ending/cr/line_ending.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -86,6 +87,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/line-ending/crlf/line_ending.js.snap b/crates/biome_js_formatter/tests/specs/js/module/line-ending/crlf/line_ending.js.snap index 30264e781d27..304d7feaa024 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/line-ending/crlf/line_ending.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/line-ending/crlf/line_ending.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -86,6 +87,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/newlines.js.snap b/crates/biome_js_formatter/tests/specs/js/module/newlines.js.snap index 27cdc165ad2b..b5b79ede01bd 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/newlines.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/newlines.js.snap @@ -105,6 +105,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/no-semi/class.js.snap b/crates/biome_js_formatter/tests/specs/js/module/no-semi/class.js.snap index 78f60839ac9c..4d192510aaa3 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/no-semi/class.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/no-semi/class.js.snap @@ -145,6 +145,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -286,6 +287,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue2006.js.snap b/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue2006.js.snap index 10ea0e1dc95d..8a024d84727f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue2006.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue2006.js.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -68,6 +69,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue6029.js.snap b/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue6029.js.snap index 3411ea71003c..49993210343d 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue6029.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue6029.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -58,6 +59,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue6375.js.snap b/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue6375.js.snap index 1e9d34e875e6..f4036bc956a2 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue6375.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/no-semi/issue6375.js.snap @@ -34,6 +34,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -66,6 +67,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/no-semi/no-semi.js.snap b/crates/biome_js_formatter/tests/specs/js/module/no-semi/no-semi.js.snap index 4f38de96cf49..0d64de899a57 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/no-semi/no-semi.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/no-semi/no-semi.js.snap @@ -107,6 +107,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -223,6 +224,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/no-semi/private-field.js.snap b/crates/biome_js_formatter/tests/specs/js/module/no-semi/private-field.js.snap index d7eb9222bbbc..3600428af16a 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/no-semi/private-field.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/no-semi/private-field.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -60,6 +61,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/no-semi/semicolons-asi.js.snap b/crates/biome_js_formatter/tests/specs/js/module/no-semi/semicolons-asi.js.snap index e56d91db5f79..68c2efe09f6c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/no-semi/semicolons-asi.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/no-semi/semicolons-asi.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -54,6 +55,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/no-semi/semicolons_range.js.snap b/crates/biome_js_formatter/tests/specs/js/module/no-semi/semicolons_range.js.snap index d9f224ce4c66..e5f4194dbddd 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/no-semi/semicolons_range.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/no-semi/semicolons_range.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -58,6 +59,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/number/number.js.snap b/crates/biome_js_formatter/tests/specs/js/module/number/number.js.snap index c7e32326bc66..1d67312aa325 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/number/number.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/number/number.js.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/number/number_with_space.js.snap b/crates/biome_js_formatter/tests/specs/js/module/number/number_with_space.js.snap index f1cdd24caa4c..ea58d04f08bd 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/number/number_with_space.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/number/number_with_space.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/bracket-spacing/object_bracket_spacing.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/bracket-spacing/object_bracket_spacing.js.snap index e74faaeea08c..85cc2d51610a 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/bracket-spacing/object_bracket_spacing.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/bracket-spacing/object_bracket_spacing.js.snap @@ -49,6 +49,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -92,6 +93,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/computed_member.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/computed_member.js.snap index 44d417627a82..d7a8300d6e19 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/computed_member.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/computed_member.js.snap @@ -46,6 +46,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/expand/expand-never.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/expand/expand-never.js.snap index 13f9c8cb8c6d..49350595eb7c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/expand/expand-never.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/expand/expand-never.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -87,6 +88,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Never diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/getter_setter.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/getter_setter.js.snap index 2c909d34d5f2..6d67ed9e147c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/getter_setter.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/getter_setter.js.snap @@ -34,6 +34,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/numeric-property.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/numeric-property.js.snap index 4b50d8afa906..2de545784e10 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/numeric-property.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/numeric-property.js.snap @@ -64,6 +64,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/object.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/object.js.snap index 2c6584061aef..b594ccc21bd2 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/object.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/object.js.snap @@ -62,6 +62,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/object_comments.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/object_comments.js.snap index 7cc38b715738..98c56653c051 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/object_comments.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/object_comments.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/octal_literals_key.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/octal_literals_key.js.snap index 3c0af647ca12..28d3e2bb3718 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/octal_literals_key.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/octal_literals_key.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/property_key.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/property_key.js.snap index 7fdc4014644d..7661da915e29 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/property_key.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/property_key.js.snap @@ -38,6 +38,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/property_object_member.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/property_object_member.js.snap index 82a74b882206..9e3279ec0f94 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/property_object_member.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/property_object_member.js.snap @@ -115,6 +115,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/trailing-commas/es5/object_trailing_commas.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/trailing-commas/es5/object_trailing_commas.js.snap index c1041db46911..c565c0903ab2 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/trailing-commas/es5/object_trailing_commas.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/trailing-commas/es5/object_trailing_commas.js.snap @@ -36,6 +36,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -72,6 +73,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/object/trailing-commas/none/object_trailing_commas.js.snap b/crates/biome_js_formatter/tests/specs/js/module/object/trailing-commas/none/object_trailing_commas.js.snap index ef05281db7c9..6e5e7d7ab257 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/object/trailing-commas/none/object_trailing_commas.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/object/trailing-commas/none/object_trailing_commas.js.snap @@ -36,6 +36,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -72,6 +73,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/operator-linebreak/before/operator_linebreak.js.snap b/crates/biome_js_formatter/tests/specs/js/module/operator-linebreak/before/operator_linebreak.js.snap index 9ba035ea3bd4..0bf0b5a89d92 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/operator-linebreak/before/operator_linebreak.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/operator-linebreak/before/operator_linebreak.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -67,6 +68,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/parentheses/parentheses.js.snap b/crates/biome_js_formatter/tests/specs/js/module/parentheses/parentheses.js.snap index eb6960d015bd..a1b0790f8813 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/parentheses/parentheses.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/parentheses/parentheses.js.snap @@ -50,6 +50,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/parentheses/range_parentheses_binary.js.snap b/crates/biome_js_formatter/tests/specs/js/module/parentheses/range_parentheses_binary.js.snap index 631350fa7046..94b5c2de552d 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/parentheses/range_parentheses_binary.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/parentheses/range_parentheses_binary.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/range/range_parenthesis_after_semicol.js.snap b/crates/biome_js_formatter/tests/specs/js/module/range/range_parenthesis_after_semicol.js.snap index b6634706f61d..c30d12f4c948 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/range/range_parenthesis_after_semicol.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/range/range_parenthesis_after_semicol.js.snap @@ -37,6 +37,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/range/range_parenthesis_after_semicol_1.js.snap b/crates/biome_js_formatter/tests/specs/js/module/range/range_parenthesis_after_semicol_1.js.snap index 32f3d9171347..74d38eff8859 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/range/range_parenthesis_after_semicol_1.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/range/range_parenthesis_after_semicol_1.js.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/script.js.snap b/crates/biome_js_formatter/tests/specs/js/module/script.js.snap index 5ae8b226d40c..22f68d17bb9c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/script.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/script.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/block_statement.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/block_statement.js.snap index 2e177e4c5637..a5b6b46a91d3 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/block_statement.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/block_statement.js.snap @@ -36,6 +36,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/continue_stmt.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/continue_stmt.js.snap index 69228b174311..9cb424b895ca 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/continue_stmt.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/continue_stmt.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/do_while.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/do_while.js.snap index fba44173605b..fc4a9a69cda6 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/do_while.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/do_while.js.snap @@ -41,6 +41,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/empty_blocks.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/empty_blocks.js.snap index dce43d5c1d81..6405d2c825cc 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/empty_blocks.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/empty_blocks.js.snap @@ -56,6 +56,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/for_in.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/for_in.js.snap index 3a314dc2b9d4..e36c71ae5d53 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/for_in.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/for_in.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/for_loop.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/for_loop.js.snap index 229f018dba5a..7a661e73d16e 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/for_loop.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/for_loop.js.snap @@ -44,6 +44,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/for_of.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/for_of.js.snap index ebb718801c64..de424139f15f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/for_of.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/for_of.js.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/if_chain.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/if_chain.js.snap index 7d09146ff83d..ce294331b4df 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/if_chain.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/if_chain.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/if_else.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/if_else.js.snap index d2984c8c9430..a4693271c3b8 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/if_else.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/if_else.js.snap @@ -96,6 +96,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/return.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/return.js.snap index 8d9f809d1c6d..1315d1347527 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/return.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/return.js.snap @@ -52,6 +52,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/return_verbatim_argument.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/return_verbatim_argument.js.snap index 08fd97730ba4..fe73daaae1ad 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/return_verbatim_argument.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/return_verbatim_argument.js.snap @@ -52,6 +52,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/statement.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/statement.js.snap index 149fd1f8c59f..1d1011b12094 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/statement.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/statement.js.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/switch.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/switch.js.snap index b8154fe2f9f8..f8a80e8b7ff9 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/switch.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/switch.js.snap @@ -78,6 +78,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/switch_comment.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/switch_comment.js.snap index df6e69a785e9..3bee81136dc5 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/switch_comment.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/switch_comment.js.snap @@ -45,6 +45,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/throw.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/throw.js.snap index a8614d2fb811..c9c32f46d08c 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/throw.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/throw.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/try_catch_finally.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/try_catch_finally.js.snap index 63179649ee4e..f2fba7931b44 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/try_catch_finally.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/try_catch_finally.js.snap @@ -53,6 +53,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/statement/while_loop.js.snap b/crates/biome_js_formatter/tests/specs/js/module/statement/while_loop.js.snap index ec04d6c2f10c..f1807fd0c783 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/statement/while_loop.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/statement/while_loop.js.snap @@ -53,6 +53,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/directives.js.snap b/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/directives.js.snap index ee8ab879b95b..21a95f04eab4 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/directives.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/directives.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -59,6 +60,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/parentheses_token.js.snap b/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/parentheses_token.js.snap index 59a4113158cb..3a22b940cbbb 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/parentheses_token.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/parentheses_token.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -54,6 +55,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/properties_quotes.js.snap b/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/properties_quotes.js.snap index d038efc7c3bd..41f98cce3586 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/properties_quotes.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/properties_quotes.js.snap @@ -70,6 +70,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -139,6 +140,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/string.js.snap b/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/string.js.snap index 5eb6a229b2cd..b655fae81c04 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/string.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/string/quotePreserve/string.js.snap @@ -85,6 +85,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -174,6 +175,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/directives.js.snap b/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/directives.js.snap index a4759af1c907..c6ddbed06eb5 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/directives.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/directives.js.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -59,6 +60,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/parentheses_token.js.snap b/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/parentheses_token.js.snap index 5296f8d7d4e5..fe2c82fb4933 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/parentheses_token.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/parentheses_token.js.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -54,6 +55,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/properties_quotes.js.snap b/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/properties_quotes.js.snap index af9e233af101..3da9ea5d7a5a 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/properties_quotes.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/properties_quotes.js.snap @@ -70,6 +70,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -139,6 +140,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/string.js.snap b/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/string.js.snap index 607536c522bd..fa44e1370978 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/string.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/string/quoteSingle/string.js.snap @@ -85,6 +85,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -174,6 +175,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/suppression.js.snap b/crates/biome_js_formatter/tests/specs/js/module/suppression.js.snap index ef12a380465a..cc6d08e4b0df 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/suppression.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/suppression.js.snap @@ -56,6 +56,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/template/template.js.snap b/crates/biome_js_formatter/tests/specs/js/module/template/template.js.snap index adfd8146f210..9c0119f086cf 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/template/template.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/template/template.js.snap @@ -98,6 +98,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/trailing_newline/disabled/simple.js.snap b/crates/biome_js_formatter/tests/specs/js/module/trailing_newline/disabled/simple.js.snap index f15dba4aa3e0..764f8c010f64 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/trailing_newline/disabled/simple.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/trailing_newline/disabled/simple.js.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -56,6 +57,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/module/with.js.snap b/crates/biome_js_formatter/tests/specs/js/module/with.js.snap index a305fa596287..2e5b8f4c743f 100644 --- a/crates/biome_js_formatter/tests/specs/js/module/with.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/module/with.js.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/script/script.js.snap b/crates/biome_js_formatter/tests/specs/js/script/script.js.snap index 3ce9a9b47833..6c6fae477e7c 100644 --- a/crates/biome_js_formatter/tests/specs/js/script/script.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/script/script.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/script/script_with_bom.js.snap b/crates/biome_js_formatter/tests/specs/js/script/script_with_bom.js.snap index 9d6c22679e57..179e5aa22180 100644 --- a/crates/biome_js_formatter/tests/specs/js/script/script_with_bom.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/script/script_with_bom.js.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/js/script/with.js.snap b/crates/biome_js_formatter/tests/specs/js/script/with.js.snap index 3b9fd6059561..14fe100cb4fc 100644 --- a/crates/biome_js_formatter/tests/specs/js/script/with.js.snap +++ b/crates/biome_js_formatter/tests/specs/js/script/with.js.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/arrow_function.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/arrow_function.jsx.snap index 473c85207768..f6282a37e3c8 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/arrow_function.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/arrow_function.jsx.snap @@ -67,6 +67,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/attribute_escape.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/attribute_escape.jsx.snap index a4367a8d45f2..4e22cba0f2c7 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/attribute_escape.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/attribute_escape.jsx.snap @@ -42,6 +42,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/attribute_position/attribute_position.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/attribute_position/attribute_position.jsx.snap index 864fb7e4c8e8..3bbacabcea2b 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/attribute_position/attribute_position.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/attribute_position/attribute_position.jsx.snap @@ -54,6 +54,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -117,6 +118,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Multiline Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/attributes.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/attributes.jsx.snap index f5b6ef334c64..ce38ed15be91 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/attributes.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/attributes.jsx.snap @@ -103,6 +103,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/bracket_same_line/bracket_same_line.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/bracket_same_line/bracket_same_line.jsx.snap index 3e3ff36b6e93..c28ffd34f2aa 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/bracket_same_line/bracket_same_line.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/bracket_same_line/bracket_same_line.jsx.snap @@ -70,6 +70,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -138,6 +139,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: true Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/comments.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/comments.jsx.snap index dd4b6f868ce0..c80a31f323c0 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/comments.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/comments.jsx.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/conditional.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/conditional.jsx.snap index d687f7e3112c..f4a383916bd0 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/conditional.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/conditional.jsx.snap @@ -76,6 +76,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/element.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/element.jsx.snap index 00fef2aefba4..072b09435c10 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/element.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/element.jsx.snap @@ -357,6 +357,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/fragment.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/fragment.jsx.snap index 51e5b3147cc9..93bd0382a675 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/fragment.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/fragment.jsx.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/multiline_jsx_string/multiline_jsx_string.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/multiline_jsx_string/multiline_jsx_string.jsx.snap index f111785bd96b..5a0eeedffc1e 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/multiline_jsx_string/multiline_jsx_string.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/multiline_jsx_string/multiline_jsx_string.jsx.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -58,6 +59,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/new-lines.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/new-lines.jsx.snap index 9c9da0a6ef86..e127cac60aeb 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/new-lines.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/new-lines.jsx.snap @@ -77,6 +77,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/parentheses_range.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/parentheses_range.jsx.snap index 81bb0fac0a29..2e32e32668e7 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/parentheses_range.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/parentheses_range.jsx.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_double_string_double/quote_style.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_double_string_double/quote_style.jsx.snap index 1a035a763d00..72f3f6d9a9c5 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_double_string_double/quote_style.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_double_string_double/quote_style.jsx.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -63,6 +64,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_double_string_single/quote_style.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_double_string_single/quote_style.jsx.snap index aab461116fd9..38d475c0c85c 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_double_string_single/quote_style.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_double_string_single/quote_style.jsx.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -63,6 +64,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_single_string_double/quote_style.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_single_string_double/quote_style.jsx.snap index 71841e0fe119..e8d7d105a925 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_single_string_double/quote_style.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_single_string_double/quote_style.jsx.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -63,6 +64,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_single_string_single/quote_style.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_single_string_single/quote_style.jsx.snap index ffc543030e85..47f1bda194cf 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_single_string_single/quote_style.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/quote_style/jsx_single_string_single/quote_style.jsx.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -63,6 +64,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/self_closing.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/self_closing.jsx.snap index 8b8ba73d3c07..f8a59a8586bc 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/self_closing.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/self_closing.jsx.snap @@ -48,6 +48,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/smoke.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/smoke.jsx.snap index a6e1130a23ef..5d45fd1bb593 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/smoke.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/smoke.jsx.snap @@ -27,6 +27,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/jsx/text_children.jsx.snap b/crates/biome_js_formatter/tests/specs/jsx/text_children.jsx.snap index 05e05faa20c1..76fb691573bb 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/text_children.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/text_children.jsx.snap @@ -128,6 +128,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/array/expand/expand-always.ts.snap b/crates/biome_js_formatter/tests/specs/ts/array/expand/expand-always.ts.snap index 523e04466d51..147a7fe623ba 100644 --- a/crates/biome_js_formatter/tests/specs/ts/array/expand/expand-always.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/array/expand/expand-always.ts.snap @@ -62,6 +62,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -106,6 +107,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Always diff --git a/crates/biome_js_formatter/tests/specs/ts/arrow/arrow_parentheses.ts.snap b/crates/biome_js_formatter/tests/specs/ts/arrow/arrow_parentheses.ts.snap index 1b4c60bc9e55..980083c0f323 100644 --- a/crates/biome_js_formatter/tests/specs/ts/arrow/arrow_parentheses.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/arrow/arrow_parentheses.ts.snap @@ -40,6 +40,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -78,6 +79,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/arrow/long_arrow_parentheses_with_line_break.ts.snap b/crates/biome_js_formatter/tests/specs/ts/arrow/long_arrow_parentheses_with_line_break.ts.snap index aad72ef21dee..6d85c509317f 100644 --- a/crates/biome_js_formatter/tests/specs/ts/arrow/long_arrow_parentheses_with_line_break.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/arrow/long_arrow_parentheses_with_line_break.ts.snap @@ -42,6 +42,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -82,6 +83,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/arrow/parameter_default_binding_line_break.ts.snap b/crates/biome_js_formatter/tests/specs/ts/arrow/parameter_default_binding_line_break.ts.snap index 4272e5233bc5..2e44721a31d3 100644 --- a/crates/biome_js_formatter/tests/specs/ts/arrow/parameter_default_binding_line_break.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/arrow/parameter_default_binding_line_break.ts.snap @@ -47,6 +47,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -86,6 +87,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: As needed Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/arrow_chain.ts.snap b/crates/biome_js_formatter/tests/specs/ts/arrow_chain.ts.snap index 3453c8ae8b1b..c68c88663723 100644 --- a/crates/biome_js_formatter/tests/specs/ts/arrow_chain.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/arrow_chain.ts.snap @@ -38,6 +38,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/assignment/as_assignment.ts.snap b/crates/biome_js_formatter/tests/specs/ts/assignment/as_assignment.ts.snap index 8a29e21a7c45..fdaaf4952c32 100644 --- a/crates/biome_js_formatter/tests/specs/ts/assignment/as_assignment.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/assignment/as_assignment.ts.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/assignment/assignment.ts.snap b/crates/biome_js_formatter/tests/specs/ts/assignment/assignment.ts.snap index e3d1d4098ef7..07068ae1468e 100644 --- a/crates/biome_js_formatter/tests/specs/ts/assignment/assignment.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/assignment/assignment.ts.snap @@ -40,6 +40,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/assignment/assignment_comments.ts.snap b/crates/biome_js_formatter/tests/specs/ts/assignment/assignment_comments.ts.snap index 2046cade9d1b..e8ce169afa32 100644 --- a/crates/biome_js_formatter/tests/specs/ts/assignment/assignment_comments.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/assignment/assignment_comments.ts.snap @@ -48,6 +48,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/assignment/property_assignment_comments.ts.snap b/crates/biome_js_formatter/tests/specs/ts/assignment/property_assignment_comments.ts.snap index f93ab24a3359..8ff0ad4ca452 100644 --- a/crates/biome_js_formatter/tests/specs/ts/assignment/property_assignment_comments.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/assignment/property_assignment_comments.ts.snap @@ -60,6 +60,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/assignment/type_assertion_assignment.ts.snap b/crates/biome_js_formatter/tests/specs/ts/assignment/type_assertion_assignment.ts.snap index df0551a1a8c3..57155ce1b6c2 100644 --- a/crates/biome_js_formatter/tests/specs/ts/assignment/type_assertion_assignment.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/assignment/type_assertion_assignment.ts.snap @@ -41,6 +41,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/binding/definite_variable.ts.snap b/crates/biome_js_formatter/tests/specs/ts/binding/definite_variable.ts.snap index a9b5ba0f5da1..bfb36e88cc5f 100644 --- a/crates/biome_js_formatter/tests/specs/ts/binding/definite_variable.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/binding/definite_variable.ts.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/call_expression.ts.snap b/crates/biome_js_formatter/tests/specs/ts/call_expression.ts.snap index 0a71ef4be757..e4630d8b243a 100644 --- a/crates/biome_js_formatter/tests/specs/ts/call_expression.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/call_expression.ts.snap @@ -60,6 +60,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/class/accessor.ts.snap b/crates/biome_js_formatter/tests/specs/ts/class/accessor.ts.snap index 95ed3aa85234..e54a3baed121 100644 --- a/crates/biome_js_formatter/tests/specs/ts/class/accessor.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/class/accessor.ts.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/class/assignment_layout.ts.snap b/crates/biome_js_formatter/tests/specs/ts/class/assignment_layout.ts.snap index 3c7f51668bc9..3dcfb82c3e5c 100644 --- a/crates/biome_js_formatter/tests/specs/ts/class/assignment_layout.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/class/assignment_layout.ts.snap @@ -34,6 +34,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/class/constructor_parameter.ts.snap b/crates/biome_js_formatter/tests/specs/ts/class/constructor_parameter.ts.snap index 18d84dce60db..13e9a83828b1 100644 --- a/crates/biome_js_formatter/tests/specs/ts/class/constructor_parameter.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/class/constructor_parameter.ts.snap @@ -71,6 +71,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/class/implements_clause.ts.snap b/crates/biome_js_formatter/tests/specs/ts/class/implements_clause.ts.snap index 506862cd825e..7c7afcd490b2 100644 --- a/crates/biome_js_formatter/tests/specs/ts/class/implements_clause.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/class/implements_clause.ts.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/class/readonly_ambient_property.ts.snap b/crates/biome_js_formatter/tests/specs/ts/class/readonly_ambient_property.ts.snap index 175ec9e36e00..cea6bc787997 100644 --- a/crates/biome_js_formatter/tests/specs/ts/class/readonly_ambient_property.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/class/readonly_ambient_property.ts.snap @@ -37,6 +37,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/class/trailing_commas/es5/class_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/class/trailing_commas/es5/class_trailing_commas.ts.snap index 2a83312e07ca..34792ba8e4aa 100644 --- a/crates/biome_js_formatter/tests/specs/ts/class/trailing_commas/es5/class_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/class/trailing_commas/es5/class_trailing_commas.ts.snap @@ -38,6 +38,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -88,6 +89,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/class/trailing_commas/none/class_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/class/trailing_commas/none/class_trailing_commas.ts.snap index 83b5dec5335c..29f9471752f1 100644 --- a/crates/biome_js_formatter/tests/specs/ts/class/trailing_commas/none/class_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/class/trailing_commas/none/class_trailing_commas.ts.snap @@ -38,6 +38,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -88,6 +89,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/declaration/class.ts.snap b/crates/biome_js_formatter/tests/specs/ts/declaration/class.ts.snap index 1ac45c0adbc3..74af05b95874 100644 --- a/crates/biome_js_formatter/tests/specs/ts/declaration/class.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/declaration/class.ts.snap @@ -86,6 +86,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/declaration/declare_function.ts.snap b/crates/biome_js_formatter/tests/specs/ts/declaration/declare_function.ts.snap index c6bf77fdf7c5..260fc6bd27a2 100644 --- a/crates/biome_js_formatter/tests/specs/ts/declaration/declare_function.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/declaration/declare_function.ts.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/declaration/global_declaration.ts.snap b/crates/biome_js_formatter/tests/specs/ts/declaration/global_declaration.ts.snap index b037a35e7a4f..353eb64b0b77 100644 --- a/crates/biome_js_formatter/tests/specs/ts/declaration/global_declaration.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/declaration/global_declaration.ts.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/declaration/interface.ts.snap b/crates/biome_js_formatter/tests/specs/ts/declaration/interface.ts.snap index d8821880dd7e..350f79e11ad9 100644 --- a/crates/biome_js_formatter/tests/specs/ts/declaration/interface.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/declaration/interface.ts.snap @@ -74,6 +74,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/declaration/variable_declaration.ts.snap b/crates/biome_js_formatter/tests/specs/ts/declaration/variable_declaration.ts.snap index 3a376fd0e3b6..457121e75910 100644 --- a/crates/biome_js_formatter/tests/specs/ts/declaration/variable_declaration.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/declaration/variable_declaration.ts.snap @@ -114,6 +114,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/declare.ts.snap b/crates/biome_js_formatter/tests/specs/ts/declare.ts.snap index ae8c3361f3ea..03d593558245 100644 --- a/crates/biome_js_formatter/tests/specs/ts/declare.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/declare.ts.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/decoartors.ts.snap b/crates/biome_js_formatter/tests/specs/ts/decoartors.ts.snap index c00d795fe0ca..71165f6c053e 100644 --- a/crates/biome_js_formatter/tests/specs/ts/decoartors.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/decoartors.ts.snap @@ -285,6 +285,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/decorators/class_members.ts.snap b/crates/biome_js_formatter/tests/specs/ts/decorators/class_members.ts.snap index 97a1b6391aa7..4413d778aceb 100644 --- a/crates/biome_js_formatter/tests/specs/ts/decorators/class_members.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/decorators/class_members.ts.snap @@ -121,6 +121,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/enum/trailing_commas_es5/enum_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/enum/trailing_commas_es5/enum_trailing_commas.ts.snap index e2aa2f2e2de7..fba2c1edd6b6 100644 --- a/crates/biome_js_formatter/tests/specs/ts/enum/trailing_commas_es5/enum_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/enum/trailing_commas_es5/enum_trailing_commas.ts.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -62,6 +63,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/enum/trailing_commas_none/enum_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/enum/trailing_commas_none/enum_trailing_commas.ts.snap index 6b95a8c885dd..927d5290806d 100644 --- a/crates/biome_js_formatter/tests/specs/ts/enum/trailing_commas_none/enum_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/enum/trailing_commas_none/enum_trailing_commas.ts.snap @@ -32,6 +32,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -62,6 +63,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/expression/as_expression.ts.snap b/crates/biome_js_formatter/tests/specs/ts/expression/as_expression.ts.snap index 2240fbd37bb3..ad7a682c8bdd 100644 --- a/crates/biome_js_formatter/tests/specs/ts/expression/as_expression.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/expression/as_expression.ts.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/expression/bracket-spacing/expression_bracket_spacing.ts.snap b/crates/biome_js_formatter/tests/specs/ts/expression/bracket-spacing/expression_bracket_spacing.ts.snap index 2119ea142ac6..d34da2dcc3c7 100644 --- a/crates/biome_js_formatter/tests/specs/ts/expression/bracket-spacing/expression_bracket_spacing.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/expression/bracket-spacing/expression_bracket_spacing.ts.snap @@ -94,6 +94,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -215,6 +216,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/expression/non_null_expression.ts.snap b/crates/biome_js_formatter/tests/specs/ts/expression/non_null_expression.ts.snap index 04d0829f0b8c..17b8c7034d3a 100644 --- a/crates/biome_js_formatter/tests/specs/ts/expression/non_null_expression.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/expression/non_null_expression.ts.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/expression/type_assertion_expression.ts.snap b/crates/biome_js_formatter/tests/specs/ts/expression/type_assertion_expression.ts.snap index 7b54623a8d20..c08c55467b25 100644 --- a/crates/biome_js_formatter/tests/specs/ts/expression/type_assertion_expression.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/expression/type_assertion_expression.ts.snap @@ -33,6 +33,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/expression/type_expression.ts.snap b/crates/biome_js_formatter/tests/specs/ts/expression/type_expression.ts.snap index d07c4dfa2f2e..db68df586d31 100644 --- a/crates/biome_js_formatter/tests/specs/ts/expression/type_expression.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/expression/type_expression.ts.snap @@ -133,6 +133,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/expression/type_member.ts.snap b/crates/biome_js_formatter/tests/specs/ts/expression/type_member.ts.snap index 76a3df5e5db7..1f7388b4542b 100644 --- a/crates/biome_js_formatter/tests/specs/ts/expression/type_member.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/expression/type_member.ts.snap @@ -76,6 +76,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/function/parameters/line_width_100/function_parameters.ts.snap b/crates/biome_js_formatter/tests/specs/ts/function/parameters/line_width_100/function_parameters.ts.snap index 707c2e5e58da..863e01edc9c4 100644 --- a/crates/biome_js_formatter/tests/specs/ts/function/parameters/line_width_100/function_parameters.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/function/parameters/line_width_100/function_parameters.ts.snap @@ -60,6 +60,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -120,6 +121,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/function/parameters/line_width_120/function_parameters.ts.snap b/crates/biome_js_formatter/tests/specs/ts/function/parameters/line_width_120/function_parameters.ts.snap index 445889b88389..281ce79a3b3b 100644 --- a/crates/biome_js_formatter/tests/specs/ts/function/parameters/line_width_120/function_parameters.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/function/parameters/line_width_120/function_parameters.ts.snap @@ -60,6 +60,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -120,6 +121,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/function/trailing_commas/es5/function_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/function/trailing_commas/es5/function_trailing_commas.ts.snap index b54399ebbd57..1359ae4d3cad 100644 --- a/crates/biome_js_formatter/tests/specs/ts/function/trailing_commas/es5/function_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/function/trailing_commas/es5/function_trailing_commas.ts.snap @@ -64,6 +64,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -128,6 +129,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/function/trailing_commas/none/function_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/function/trailing_commas/none/function_trailing_commas.ts.snap index f9ad3248886e..89fc5a12fbeb 100644 --- a/crates/biome_js_formatter/tests/specs/ts/function/trailing_commas/none/function_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/function/trailing_commas/none/function_trailing_commas.ts.snap @@ -64,6 +64,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -128,6 +129,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/issue1511.ts.snap b/crates/biome_js_formatter/tests/specs/ts/issue1511.ts.snap index 22df05512346..5028c99f3d26 100644 --- a/crates/biome_js_formatter/tests/specs/ts/issue1511.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/issue1511.ts.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/module/export_clause.ts.snap b/crates/biome_js_formatter/tests/specs/ts/module/export_clause.ts.snap index 29d56a8a6d43..6b06cd3fba7c 100644 --- a/crates/biome_js_formatter/tests/specs/ts/module/export_clause.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/module/export_clause.ts.snap @@ -51,6 +51,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/module/external_module_reference.ts.snap b/crates/biome_js_formatter/tests/specs/ts/module/external_module_reference.ts.snap index 1d862ed527e2..f58ed207f5f8 100644 --- a/crates/biome_js_formatter/tests/specs/ts/module/external_module_reference.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/module/external_module_reference.ts.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/module/import_type/import_types.ts.snap b/crates/biome_js_formatter/tests/specs/ts/module/import_type/import_types.ts.snap index c674cdd97b2e..3e568ce0b9c6 100644 --- a/crates/biome_js_formatter/tests/specs/ts/module/import_type/import_types.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/module/import_type/import_types.ts.snap @@ -49,6 +49,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -89,6 +90,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: false +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/module/module_declaration.ts.snap b/crates/biome_js_formatter/tests/specs/ts/module/module_declaration.ts.snap index 095de9ab0294..b125f92f60d6 100644 --- a/crates/biome_js_formatter/tests/specs/ts/module/module_declaration.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/module/module_declaration.ts.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/module/qualified_module_name.ts.snap b/crates/biome_js_formatter/tests/specs/ts/module/qualified_module_name.ts.snap index 6d7138530fe4..04f08a6f0b7a 100644 --- a/crates/biome_js_formatter/tests/specs/ts/module/qualified_module_name.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/module/qualified_module_name.ts.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/no-semi/class.ts.snap b/crates/biome_js_formatter/tests/specs/ts/no-semi/class.ts.snap index be1174c0da3b..f4960280160f 100644 --- a/crates/biome_js_formatter/tests/specs/ts/no-semi/class.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/no-semi/class.ts.snap @@ -79,6 +79,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -156,6 +157,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/no-semi/non-null.ts.snap b/crates/biome_js_formatter/tests/specs/ts/no-semi/non-null.ts.snap index b4ffe06064ad..bfdf66426d22 100644 --- a/crates/biome_js_formatter/tests/specs/ts/no-semi/non-null.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/no-semi/non-null.ts.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -58,6 +59,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/no-semi/statements.ts.snap b/crates/biome_js_formatter/tests/specs/ts/no-semi/statements.ts.snap index 9beac9fbaeec..3dd77d83366e 100644 --- a/crates/biome_js_formatter/tests/specs/ts/no-semi/statements.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/no-semi/statements.ts.snap @@ -41,6 +41,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -79,6 +80,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/no-semi/types.ts.snap b/crates/biome_js_formatter/tests/specs/ts/no-semi/types.ts.snap index 0fae615b7f7a..820b8684227e 100644 --- a/crates/biome_js_formatter/tests/specs/ts/no-semi/types.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/no-semi/types.ts.snap @@ -40,6 +40,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -82,6 +83,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/object/expand/expand-never.ts.snap b/crates/biome_js_formatter/tests/specs/ts/object/expand/expand-never.ts.snap index 911a220110d9..73837e444d06 100644 --- a/crates/biome_js_formatter/tests/specs/ts/object/expand/expand-never.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/object/expand/expand-never.ts.snap @@ -62,6 +62,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -124,6 +125,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Never diff --git a/crates/biome_js_formatter/tests/specs/ts/object/objects.ts.snap b/crates/biome_js_formatter/tests/specs/ts/object/objects.ts.snap index 60f9ad64b105..5689f8132cb2 100644 --- a/crates/biome_js_formatter/tests/specs/ts/object/objects.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/object/objects.ts.snap @@ -78,6 +78,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/object/trailing_commas_es5/object_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/object/trailing_commas_es5/object_trailing_commas.ts.snap index 8fd28ae9d437..ab221ccb3c22 100644 --- a/crates/biome_js_formatter/tests/specs/ts/object/trailing_commas_es5/object_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/object/trailing_commas_es5/object_trailing_commas.ts.snap @@ -49,6 +49,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -95,6 +96,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/object/trailing_commas_none/object_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/object/trailing_commas_none/object_trailing_commas.ts.snap index bfbf06c20be3..42112e035266 100644 --- a/crates/biome_js_formatter/tests/specs/ts/object/trailing_commas_none/object_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/object/trailing_commas_none/object_trailing_commas.ts.snap @@ -49,6 +49,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -95,6 +96,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/parameters/issue-1356/parameter_type_annotation_semicolon.ts.snap b/crates/biome_js_formatter/tests/specs/ts/parameters/issue-1356/parameter_type_annotation_semicolon.ts.snap index ca2c9e094d01..e042658d08ae 100644 --- a/crates/biome_js_formatter/tests/specs/ts/parameters/issue-1356/parameter_type_annotation_semicolon.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/parameters/issue-1356/parameter_type_annotation_semicolon.ts.snap @@ -36,6 +36,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -71,6 +72,7 @@ Trailing commas: All Semicolons: As needed Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/parameters/parameters.ts.snap b/crates/biome_js_formatter/tests/specs/ts/parameters/parameters.ts.snap index 7760881cc596..b52ac78b5da3 100644 --- a/crates/biome_js_formatter/tests/specs/ts/parameters/parameters.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/parameters/parameters.ts.snap @@ -29,6 +29,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/parenthesis.ts.snap b/crates/biome_js_formatter/tests/specs/ts/parenthesis.ts.snap index 9d7715a25741..fa6080c13493 100644 --- a/crates/biome_js_formatter/tests/specs/ts/parenthesis.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/parenthesis.ts.snap @@ -36,6 +36,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/simple_arguments.ts.snap b/crates/biome_js_formatter/tests/specs/ts/simple_arguments.ts.snap index bf4ad2f84fc4..787138117d2b 100644 --- a/crates/biome_js_formatter/tests/specs/ts/simple_arguments.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/simple_arguments.ts.snap @@ -74,6 +74,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/statement/empty_block.ts.snap b/crates/biome_js_formatter/tests/specs/ts/statement/empty_block.ts.snap index b47d8416ba1a..ae1e7ad1b709 100644 --- a/crates/biome_js_formatter/tests/specs/ts/statement/empty_block.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/statement/empty_block.ts.snap @@ -28,6 +28,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/statement/enum_statement.ts.snap b/crates/biome_js_formatter/tests/specs/ts/statement/enum_statement.ts.snap index 37d12c60b58f..c63dda409848 100644 --- a/crates/biome_js_formatter/tests/specs/ts/statement/enum_statement.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/statement/enum_statement.ts.snap @@ -39,6 +39,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/string/quotePreserve/parameter_quotes.ts.snap b/crates/biome_js_formatter/tests/specs/ts/string/quotePreserve/parameter_quotes.ts.snap index d82487b9316d..5a689265a7d4 100644 --- a/crates/biome_js_formatter/tests/specs/ts/string/quotePreserve/parameter_quotes.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/string/quotePreserve/parameter_quotes.ts.snap @@ -62,6 +62,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -122,6 +123,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/string/quoteSingle/parameter_quotes.ts.snap b/crates/biome_js_formatter/tests/specs/ts/string/quoteSingle/parameter_quotes.ts.snap index eccfdac9ba67..bb1c8de84f39 100644 --- a/crates/biome_js_formatter/tests/specs/ts/string/quoteSingle/parameter_quotes.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/string/quoteSingle/parameter_quotes.ts.snap @@ -62,6 +62,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -122,6 +123,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/suppressions.ts.snap b/crates/biome_js_formatter/tests/specs/ts/suppressions.ts.snap index 511ac72016af..35bc9c085595 100644 --- a/crates/biome_js_formatter/tests/specs/ts/suppressions.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/suppressions.ts.snap @@ -34,6 +34,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/conditional.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/conditional.ts.snap index 515a9604def1..9db026208e05 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/conditional.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/conditional.ts.snap @@ -70,6 +70,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/import_type.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/import_type.ts.snap index 6b5feba312c7..64f9ab6c5430 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/import_type.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/import_type.ts.snap @@ -35,6 +35,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/import_type_with_resolution_mode.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/import_type_with_resolution_mode.ts.snap index bf7ae40e0f61..740e9018fa69 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/import_type_with_resolution_mode.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/import_type_with_resolution_mode.ts.snap @@ -31,6 +31,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/injfer_in_intersection.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/injfer_in_intersection.ts.snap index f7b59b2f1d86..b0866c7f4ce4 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/injfer_in_intersection.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/injfer_in_intersection.ts.snap @@ -27,6 +27,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/injfer_in_union.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/injfer_in_union.ts.snap index 096aea26149d..fc04479df855 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/injfer_in_union.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/injfer_in_union.ts.snap @@ -27,6 +27,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/intersection_type.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/intersection_type.ts.snap index 6e90db6bf4aa..ae7e086c7456 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/intersection_type.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/intersection_type.ts.snap @@ -85,6 +85,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/mapped_type.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/mapped_type.ts.snap index b7ef6a0a9895..3695235baaac 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/mapped_type.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/mapped_type.ts.snap @@ -34,6 +34,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/qualified_name.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/qualified_name.ts.snap index 8373dbdba1c0..35a4ce9837b4 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/qualified_name.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/qualified_name.ts.snap @@ -27,6 +27,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/template_type.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/template_type.ts.snap index 9485014fd669..9b82c247fbea 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/template_type.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/template_type.ts.snap @@ -30,6 +30,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/trailing-commas/es5/type_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/trailing-commas/es5/type_trailing_commas.ts.snap index 4b2e7090cb8c..4d39597bd25a 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/trailing-commas/es5/type_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/trailing-commas/es5/type_trailing_commas.ts.snap @@ -39,6 +39,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -75,6 +76,7 @@ Trailing commas: ES5 Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/trailing-commas/none/type_trailing_commas.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/trailing-commas/none/type_trailing_commas.ts.snap index 44d907aaf33b..b8cc6c2f3dc8 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/trailing-commas/none/type_trailing_commas.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/trailing-commas/none/type_trailing_commas.ts.snap @@ -39,6 +39,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -75,6 +76,7 @@ Trailing commas: None Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/type_alias/issue-8774.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/type_alias/issue-8774.ts.snap index 97ad34f416dc..180bb23cab1b 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/type_alias/issue-8774.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/type_alias/issue-8774.ts.snap @@ -84,6 +84,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/type/union_type.ts.snap b/crates/biome_js_formatter/tests/specs/ts/type/union_type.ts.snap index 4597aacf615a..554d0d950395 100644 --- a/crates/biome_js_formatter/tests/specs/ts/type/union_type.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/type/union_type.ts.snap @@ -276,6 +276,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/ts/union/nested_union/nested_union.ts.snap b/crates/biome_js_formatter/tests/specs/ts/union/nested_union/nested_union.ts.snap index 4760c4af0ef8..eb841cdab75a 100644 --- a/crates/biome_js_formatter/tests/specs/ts/union/nested_union/nested_union.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/union/nested_union/nested_union.ts.snap @@ -39,6 +39,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto @@ -76,6 +77,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/tsx/arrow/issue-2736.tsx.snap b/crates/biome_js_formatter/tests/specs/tsx/arrow/issue-2736.tsx.snap index 2ee70173d3b0..7d7b25317904 100644 --- a/crates/biome_js_formatter/tests/specs/tsx/arrow/issue-2736.tsx.snap +++ b/crates/biome_js_formatter/tests/specs/tsx/arrow/issue-2736.tsx.snap @@ -46,6 +46,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/tsx/smoke.tsx.snap b/crates/biome_js_formatter/tests/specs/tsx/smoke.tsx.snap index b45bb6a296a7..3e1c89d5a0f4 100644 --- a/crates/biome_js_formatter/tests/specs/tsx/smoke.tsx.snap +++ b/crates/biome_js_formatter/tests/specs/tsx/smoke.tsx.snap @@ -27,6 +27,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_js_formatter/tests/specs/tsx/type_param.tsx.snap b/crates/biome_js_formatter/tests/specs/tsx/type_param.tsx.snap index 5e1a443147e4..d9d02fa4dcae 100644 --- a/crates/biome_js_formatter/tests/specs/tsx/type_param.tsx.snap +++ b/crates/biome_js_formatter/tests/specs/tsx/type_param.tsx.snap @@ -41,6 +41,7 @@ Trailing commas: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true +Delimiter spacing: false Bracket same line: false Attribute Position: Auto Expand lists: Auto diff --git a/crates/biome_json_formatter/tests/specs/json/array/empty_line.json.snap b/crates/biome_json_formatter/tests/specs/json/array/empty_line.json.snap index b336c799b8c5..11f7d35c9306 100644 --- a/crates/biome_json_formatter/tests/specs/json/array/empty_line.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/array/empty_line.json.snap @@ -30,6 +30,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/array/fill_layout.json.snap b/crates/biome_json_formatter/tests/specs/json/array/fill_layout.json.snap index afcea6630544..6d2e17ba6dcf 100644 --- a/crates/biome_json_formatter/tests/specs/json/array/fill_layout.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/array/fill_layout.json.snap @@ -26,6 +26,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/array/layout.json.snap b/crates/biome_json_formatter/tests/specs/json/array/layout.json.snap index 146c17f684bd..83e2976ded1b 100644 --- a/crates/biome_json_formatter/tests/specs/json/array/layout.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/array/layout.json.snap @@ -34,6 +34,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/array/multi_line.json.snap b/crates/biome_json_formatter/tests/specs/json/array/multi_line.json.snap index 5d60afea20fe..384f3281e5d2 100644 --- a/crates/biome_json_formatter/tests/specs/json/array/multi_line.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/array/multi_line.json.snap @@ -30,6 +30,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/array/nested.json.snap b/crates/biome_json_formatter/tests/specs/json/array/nested.json.snap index 9b25181a2dd6..83e912bf8b9f 100644 --- a/crates/biome_json_formatter/tests/specs/json/array/nested.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/array/nested.json.snap @@ -26,6 +26,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/array/one_per_line_layout.json.snap b/crates/biome_json_formatter/tests/specs/json/array/one_per_line_layout.json.snap index 7768c6469520..b70dd848b7e2 100644 --- a/crates/biome_json_formatter/tests/specs/json/array/one_per_line_layout.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/array/one_per_line_layout.json.snap @@ -34,6 +34,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/array/single_line.json.snap b/crates/biome_json_formatter/tests/specs/json/array/single_line.json.snap index 4f6114397024..1cf6b7917a68 100644 --- a/crates/biome_json_formatter/tests/specs/json/array/single_line.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/array/single_line.json.snap @@ -31,6 +31,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/bracket-spacing/bracket-spacing-none.json.snap b/crates/biome_json_formatter/tests/specs/json/bracket-spacing/bracket-spacing-none.json.snap index 91011842136e..939857064f05 100644 --- a/crates/biome_json_formatter/tests/specs/json/bracket-spacing/bracket-spacing-none.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/bracket-spacing/bracket-spacing-none.json.snap @@ -24,6 +24,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- @@ -42,6 +43,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: false +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/comments/empty_with_comments.json.snap b/crates/biome_json_formatter/tests/specs/json/comments/empty_with_comments.json.snap index 35c3fad082b0..0a85667c0102 100644 --- a/crates/biome_json_formatter/tests/specs/json/comments/empty_with_comments.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/comments/empty_with_comments.json.snap @@ -38,6 +38,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/comments/multiline.json.snap b/crates/biome_json_formatter/tests/specs/json/comments/multiline.json.snap index 78b98bcf9f37..a37e35f6dbd9 100644 --- a/crates/biome_json_formatter/tests/specs/json/comments/multiline.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/comments/multiline.json.snap @@ -39,6 +39,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/empty.json.snap b/crates/biome_json_formatter/tests/specs/json/empty.json.snap index e5b030cb1979..e2039665a089 100644 --- a/crates/biome_json_formatter/tests/specs/json/empty.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/empty.json.snap @@ -23,6 +23,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/expand-never/expand-never.json.snap b/crates/biome_json_formatter/tests/specs/json/expand-never/expand-never.json.snap index 5460cdda2ed4..32a615cb311c 100644 --- a/crates/biome_json_formatter/tests/specs/json/expand-never/expand-never.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/expand-never/expand-never.json.snap @@ -32,6 +32,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- @@ -58,6 +59,7 @@ Line width: 80 Trailing commas: None Expand: Never Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/expand/nested_array.json.snap b/crates/biome_json_formatter/tests/specs/json/expand/nested_array.json.snap index 92e675fe3ce9..671a69fb0486 100644 --- a/crates/biome_json_formatter/tests/specs/json/expand/nested_array.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/expand/nested_array.json.snap @@ -26,6 +26,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- @@ -63,6 +64,7 @@ Line width: 80 Trailing commas: None Expand: Always Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/expand/nested_object.json.snap b/crates/biome_json_formatter/tests/specs/json/expand/nested_object.json.snap index a242f3306c7b..f1b71ed046dd 100644 --- a/crates/biome_json_formatter/tests/specs/json/expand/nested_object.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/expand/nested_object.json.snap @@ -24,6 +24,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- @@ -46,6 +47,7 @@ Line width: 80 Trailing commas: None Expand: Always Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/global_suppression.jsonc.snap b/crates/biome_json_formatter/tests/specs/json/global_suppression.jsonc.snap index a9258076e1d0..49520b694af2 100644 --- a/crates/biome_json_formatter/tests/specs/json/global_suppression.jsonc.snap +++ b/crates/biome_json_formatter/tests/specs/json/global_suppression.jsonc.snap @@ -31,6 +31,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/number.json.snap b/crates/biome_json_formatter/tests/specs/json/number.json.snap index c21bc2f284db..a0f396678f55 100644 --- a/crates/biome_json_formatter/tests/specs/json/number.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/number.json.snap @@ -50,6 +50,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/object/complex.json.snap b/crates/biome_json_formatter/tests/specs/json/object/complex.json.snap index f0377d620e20..33c1bf0f22a0 100644 --- a/crates/biome_json_formatter/tests/specs/json/object/complex.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/object/complex.json.snap @@ -30,6 +30,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/object/missing_value.json.snap b/crates/biome_json_formatter/tests/specs/json/object/missing_value.json.snap index d1c5a2097ba3..adb9186c97cf 100644 --- a/crates/biome_json_formatter/tests/specs/json/object/missing_value.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/object/missing_value.json.snap @@ -32,6 +32,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/object/multi_line.json.snap b/crates/biome_json_formatter/tests/specs/json/object/multi_line.json.snap index cda759361d7d..b6a4b45b31e2 100644 --- a/crates/biome_json_formatter/tests/specs/json/object/multi_line.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/object/multi_line.json.snap @@ -27,6 +27,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/object/multi_line_long.json.snap b/crates/biome_json_formatter/tests/specs/json/object/multi_line_long.json.snap index 62eaf427f288..2ea40173ab27 100644 --- a/crates/biome_json_formatter/tests/specs/json/object/multi_line_long.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/object/multi_line_long.json.snap @@ -27,6 +27,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/object/one_line.json.snap b/crates/biome_json_formatter/tests/specs/json/object/one_line.json.snap index a40ae293a4fd..551e0d6830cb 100644 --- a/crates/biome_json_formatter/tests/specs/json/object/one_line.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/object/one_line.json.snap @@ -24,6 +24,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/object/one_line_long.json.snap b/crates/biome_json_formatter/tests/specs/json/object/one_line_long.json.snap index 0f0f6ac40472..2ee6c691be1e 100644 --- a/crates/biome_json_formatter/tests/specs/json/object/one_line_long.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/object/one_line_long.json.snap @@ -24,6 +24,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/object/string.json.snap b/crates/biome_json_formatter/tests/specs/json/object/string.json.snap index 5bd7274a53b0..ae63a2d9e6cf 100644 --- a/crates/biome_json_formatter/tests/specs/json/object/string.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/object/string.json.snap @@ -29,6 +29,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/smoke.json.snap b/crates/biome_json_formatter/tests/specs/json/smoke.json.snap index 96f526ec699a..ae5942ae0bb9 100644 --- a/crates/biome_json_formatter/tests/specs/json/smoke.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/smoke.json.snap @@ -30,6 +30,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/trailing_comma_never/classic.json.snap b/crates/biome_json_formatter/tests/specs/json/trailing_comma_never/classic.json.snap index b1586261fdd1..ce1e333cb71a 100644 --- a/crates/biome_json_formatter/tests/specs/json/trailing_comma_never/classic.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/trailing_comma_never/classic.json.snap @@ -30,6 +30,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- @@ -54,6 +55,7 @@ Line width: 80 Trailing commas: All Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/trailing_comma_never/classic.jsonc.snap b/crates/biome_json_formatter/tests/specs/json/trailing_comma_never/classic.jsonc.snap index 00ea38fb4aaa..4f87c12e60d5 100644 --- a/crates/biome_json_formatter/tests/specs/json/trailing_comma_never/classic.jsonc.snap +++ b/crates/biome_json_formatter/tests/specs/json/trailing_comma_never/classic.jsonc.snap @@ -30,6 +30,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- @@ -54,6 +55,7 @@ Line width: 80 Trailing commas: All Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- diff --git a/crates/biome_json_formatter/tests/specs/json/trailing_newline/simple.json.snap b/crates/biome_json_formatter/tests/specs/json/trailing_newline/simple.json.snap index 17f22d3b0ae5..0280fca0f122 100644 --- a/crates/biome_json_formatter/tests/specs/json/trailing_newline/simple.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/trailing_newline/simple.json.snap @@ -27,6 +27,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- @@ -48,6 +49,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: false ----- diff --git a/crates/biome_json_formatter/tests/specs/json/undefined/utf8_bom_empty_object.json.snap b/crates/biome_json_formatter/tests/specs/json/undefined/utf8_bom_empty_object.json.snap index d8ec5ea320c3..11a199af7826 100644 --- a/crates/biome_json_formatter/tests/specs/json/undefined/utf8_bom_empty_object.json.snap +++ b/crates/biome_json_formatter/tests/specs/json/undefined/utf8_bom_empty_object.json.snap @@ -23,6 +23,7 @@ Line width: 80 Trailing commas: None Expand: Auto Bracket spacing: true +Delimiter spacing: false Trailing newline: true ----- From d6dcc8a7a199eaaa276aadb33e2e169b81342222 Mon Sep 17 00:00:00 2001 From: luisherranz Date: Thu, 29 Jan 2026 13:08:35 +0100 Subject: [PATCH 06/19] test(formatter): add delimiter-spacing tests --- crates/biome_cli/tests/commands/format.rs | 89 + .../applies_global_delimiter_spacing.snap | 17 + ...ge_overrides_global_delimiter_spacing.snap | 32 + .../delimiter_spacing/attribute_selectors.css | 70 + .../attribute_selectors.css.snap | 256 ++ .../delimiter_spacing/boundary_conditions.css | 80 + .../boundary_conditions.css.snap | 304 +++ .../specs/css/delimiter_spacing/container.css | 74 + .../css/delimiter_spacing/container.css.snap | 268 ++ .../specs/css/delimiter_spacing/functions.css | 60 + .../css/delimiter_spacing/functions.css.snap | 225 ++ .../specs/css/delimiter_spacing/import.css | 25 + .../css/delimiter_spacing/import.css.snap | 125 + .../css/delimiter_spacing/media_queries.css | 78 + .../delimiter_spacing/media_queries.css.snap | 282 ++ .../specs/css/delimiter_spacing/options.json | 8 + .../css/delimiter_spacing/pseudo_classes.css | 98 + .../delimiter_spacing/pseudo_classes.css.snap | 340 +++ .../specs/css/delimiter_spacing/scope.css | 68 + .../css/delimiter_spacing/scope.css.snap | 250 ++ .../specs/css/delimiter_spacing/supports.css | 73 + .../css/delimiter_spacing/supports.css.snap | 271 ++ .../css/delimiter_spacing/url_functions.css | 46 + .../delimiter_spacing/url_functions.css.snap | 186 ++ .../js/module/delimiter-spacing/arrays.js | 94 + .../module/delimiter-spacing/arrays.js.snap | 367 +++ .../delimiter-spacing/arrow_functions.js | 124 + .../delimiter-spacing/arrow_functions.js.snap | 446 ++++ .../delimiter-spacing/call_arguments.js | 164 ++ .../delimiter-spacing/call_arguments.js.snap | 581 +++++ .../delimiter-spacing/computed_members.js | 235 ++ .../computed_members.js.snap | 778 ++++++ .../delimiter-spacing/conditionals_misc.js | 64 + .../conditionals_misc.js.snap | 258 ++ .../module/delimiter-spacing/control_flow.js | 92 + .../delimiter-spacing/control_flow.js.snap | 350 +++ .../js/module/delimiter-spacing/loops.js | 159 ++ .../js/module/delimiter-spacing/loops.js.snap | 593 +++++ .../js/module/delimiter-spacing/options.json | 8 + .../delimiter-spacing/parameters_catch.js | 158 ++ .../parameters_catch.js.snap | 614 +++++ .../module/delimiter-spacing/parenthesized.js | 35 + .../delimiter-spacing/parenthesized.js.snap | 173 ++ .../js/module/delimiter-spacing/setters.js | 225 ++ .../module/delimiter-spacing/setters.js.snap | 785 ++++++ .../delimiter-spacing/template_elements.js | 181 ++ .../template_elements.js.snap | 622 +++++ .../js/module/delimiter-spacing/unary.js | 65 + .../js/module/delimiter-spacing/unary.js.snap | 266 ++ .../jsx_expression_attrs.jsx | 160 ++ .../jsx_expression_attrs.jsx.snap | 572 +++++ .../jsx_expression_children.jsx | 189 ++ .../jsx_expression_children.jsx.snap | 721 ++++++ .../specs/jsx/delimiter_spacing/options.json | 8 + .../specs/ts/delimiter_spacing/options.json | 8 + .../ts/delimiter_spacing/type_arguments.ts | 64 + .../delimiter_spacing/type_arguments.ts.snap | 283 ++ .../tests/specs/ts/delimiter_spacing/types.ts | 706 +++++ .../specs/ts/delimiter_spacing/types.ts.snap | 2266 +++++++++++++++++ .../jsx_expression_attrs.tsx | 33 + .../jsx_expression_attrs.tsx.snap | 165 ++ .../specs/tsx/delimiter_spacing/options.json | 8 + .../specs/json/delimiter_spacing/array.json | 5 + .../json/delimiter_spacing/array.json.snap | 67 + .../specs/json/delimiter_spacing/options.json | 8 + 65 files changed, 16025 insertions(+) create mode 100644 crates/biome_cli/tests/snapshots/main_commands_format/applies_global_delimiter_spacing.snap create mode 100644 crates/biome_cli/tests/snapshots/main_commands_format/language_overrides_global_delimiter_spacing.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/attribute_selectors.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/attribute_selectors.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/boundary_conditions.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/boundary_conditions.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/container.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/container.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/functions.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/functions.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/import.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/import.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/media_queries.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/media_queries.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/options.json create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/pseudo_classes.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/pseudo_classes.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/scope.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/scope.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/supports.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/supports.css.snap create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/url_functions.css create mode 100644 crates/biome_css_formatter/tests/specs/css/delimiter_spacing/url_functions.css.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/arrays.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/arrays.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/arrow_functions.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/arrow_functions.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/call_arguments.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/call_arguments.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/computed_members.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/computed_members.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/conditionals_misc.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/conditionals_misc.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/control_flow.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/control_flow.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/loops.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/loops.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/options.json create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/parameters_catch.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/parameters_catch.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/parenthesized.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/parenthesized.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/setters.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/setters.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/template_elements.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/template_elements.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/unary.js create mode 100644 crates/biome_js_formatter/tests/specs/js/module/delimiter-spacing/unary.js.snap create mode 100644 crates/biome_js_formatter/tests/specs/jsx/delimiter_spacing/jsx_expression_attrs.jsx create mode 100644 crates/biome_js_formatter/tests/specs/jsx/delimiter_spacing/jsx_expression_attrs.jsx.snap create mode 100644 crates/biome_js_formatter/tests/specs/jsx/delimiter_spacing/jsx_expression_children.jsx create mode 100644 crates/biome_js_formatter/tests/specs/jsx/delimiter_spacing/jsx_expression_children.jsx.snap create mode 100644 crates/biome_js_formatter/tests/specs/jsx/delimiter_spacing/options.json create mode 100644 crates/biome_js_formatter/tests/specs/ts/delimiter_spacing/options.json create mode 100644 crates/biome_js_formatter/tests/specs/ts/delimiter_spacing/type_arguments.ts create mode 100644 crates/biome_js_formatter/tests/specs/ts/delimiter_spacing/type_arguments.ts.snap create mode 100644 crates/biome_js_formatter/tests/specs/ts/delimiter_spacing/types.ts create mode 100644 crates/biome_js_formatter/tests/specs/ts/delimiter_spacing/types.ts.snap create mode 100644 crates/biome_js_formatter/tests/specs/tsx/delimiter_spacing/jsx_expression_attrs.tsx create mode 100644 crates/biome_js_formatter/tests/specs/tsx/delimiter_spacing/jsx_expression_attrs.tsx.snap create mode 100644 crates/biome_js_formatter/tests/specs/tsx/delimiter_spacing/options.json create mode 100644 crates/biome_json_formatter/tests/specs/json/delimiter_spacing/array.json create mode 100644 crates/biome_json_formatter/tests/specs/json/delimiter_spacing/array.json.snap create mode 100644 crates/biome_json_formatter/tests/specs/json/delimiter_spacing/options.json diff --git a/crates/biome_cli/tests/commands/format.rs b/crates/biome_cli/tests/commands/format.rs index b3a51f5772fc..ccaf0d345958 100644 --- a/crates/biome_cli/tests/commands/format.rs +++ b/crates/biome_cli/tests/commands/format.rs @@ -112,6 +112,14 @@ const APPLY_BRACKET_SPACING_AFTER_GRAPHQL: &str = r#"{ } "#; +const APPLY_DELIMITER_SPACING_BEFORE: &str = r#"const arr = [1, 2, 3]; +function foo(a, b) {} +"#; + +const APPLY_DELIMITER_SPACING_AFTER: &str = r#"const arr = [ 1, 2, 3 ]; +function foo( a, b ) {} +"#; + const APPLY_BRACKET_SAME_LINE_BEFORE: &str = r#". Fixed 1 file. +``` diff --git a/crates/biome_cli/tests/snapshots/main_commands_format/language_overrides_global_delimiter_spacing.snap b/crates/biome_cli/tests/snapshots/main_commands_format/language_overrides_global_delimiter_spacing.snap new file mode 100644 index 000000000000..ffdba1e5e408 --- /dev/null +++ b/crates/biome_cli/tests/snapshots/main_commands_format/language_overrides_global_delimiter_spacing.snap @@ -0,0 +1,32 @@ +--- +source: crates/biome_cli/tests/snap_test.rs +expression: redactor(content) +--- +## `biome.json` + +```json +{ + "formatter": { + "delimiterSpacing": true + }, + "javascript": { + "formatter": { + "delimiterSpacing": false + } + } +} +``` + +## `file.js` + +```js +const arr = [1, 2, 3]; +function foo(a, b) {} + +``` + +# Emitted Messages + +```block +Formatted 1 file in