diff --git a/crates/biome_cli/src/execute/migrate/prettier.rs b/crates/biome_cli/src/execute/migrate/prettier.rs index eae4d3231e91..de6033f5519c 100644 --- a/crates/biome_cli/src/execute/migrate/prettier.rs +++ b/crates/biome_cli/src/execute/migrate/prettier.rs @@ -254,6 +254,7 @@ impl TryFrom for biome_configuration::PartialConfiguratio bracket_spacing: Some(value.bracket_spacing.into()), jsx_quote_style: Some(jsx_quote_style), attribute_position: Some(AttributePosition::default()), + space_inside_stuff: None, }; let js_config = biome_configuration::PartialJavascriptConfiguration { formatter: Some(js_formatter), diff --git a/crates/biome_configuration/src/javascript/formatter.rs b/crates/biome_configuration/src/javascript/formatter.rs index a094beb1d56b..b63701100a00 100644 --- a/crates/biome_configuration/src/javascript/formatter.rs +++ b/crates/biome_configuration/src/javascript/formatter.rs @@ -1,6 +1,7 @@ use biome_deserialize_macros::{Deserializable, Merge, Partial}; use biome_formatter::{ AttributePosition, BracketSpacing, IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle, + SpaceInsideStuff, }; use biome_js_formatter::context::{ trailing_commas::TrailingCommas, ArrowParentheses, QuoteProperties, Semicolons, @@ -88,6 +89,10 @@ pub struct JavascriptFormatter { #[partial(bpaf(long("quote-style"), argument("double|single"), optional))] pub quote_style: QuoteStyle, + /// @todo + #[partial(bpaf(long("space-inside-stuff"), argument("true|false"), optional))] + pub space_inside_stuff: SpaceInsideStuff, + // it's also a top-level configurable property. /// The attribute position style in jsx elements. Defaults to auto. #[partial(bpaf( @@ -122,6 +127,7 @@ impl PartialJavascriptFormatter { line_width: self.line_width, quote_style: self.quote_style.unwrap_or_default(), attribute_position: self.attribute_position, + space_inside_stuff: self.space_inside_stuff.unwrap_or_default(), } } } @@ -145,6 +151,7 @@ impl Default for JavascriptFormatter { line_width: Default::default(), quote_style: Default::default(), attribute_position: Default::default(), + space_inside_stuff: Default::default(), } } } diff --git a/crates/biome_formatter/src/lib.rs b/crates/biome_formatter/src/lib.rs index 62a48a05b1eb..3d31c2e2019a 100644 --- a/crates/biome_formatter/src/lib.rs +++ b/crates/biome_formatter/src/lib.rs @@ -552,6 +552,48 @@ impl From for Quote { } } +#[derive(Clone, Copy, Debug, Default, Deserializable, Eq, Hash, Merge, PartialEq)] +#[cfg_attr( + feature = "serde", + derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema), + serde(rename_all = "camelCase") +)] +pub struct SpaceInsideStuff(bool); + +impl SpaceInsideStuff { + /// Return the boolean value for this [SpaceInsideStuff] + pub fn value(&self) -> bool { + self.0 + } +} + +impl From for SpaceInsideStuff { + fn from(value: bool) -> Self { + Self(value) + } +} + +impl std::fmt::Display for SpaceInsideStuff { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + std::write!(f, "{}", self.value()) + } +} + +impl FromStr for SpaceInsideStuff { + 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 SpaceInsideStuff. Supported values are 'true' and 'false'.", + ), + } + } +} + #[derive(Clone, Copy, Debug, Deserializable, Eq, Hash, Merge, PartialEq)] #[cfg_attr( feature = "serde", diff --git a/crates/biome_js_formatter/src/context.rs b/crates/biome_js_formatter/src/context.rs index 4bbcb83f2aa9..38a1e526e2f3 100644 --- a/crates/biome_js_formatter/src/context.rs +++ b/crates/biome_js_formatter/src/context.rs @@ -5,7 +5,8 @@ use biome_deserialize_macros::{Deserializable, Merge}; use biome_formatter::printer::PrinterOptions; use biome_formatter::{ AttributePosition, BracketSpacing, CstFormatContext, FormatContext, FormatElement, - FormatOptions, IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle, TransformSourceMap, + FormatOptions, IndentStyle, IndentWidth, LineEnding, LineWidth, QuoteStyle, SpaceInsideStuff, + TransformSourceMap, }; use biome_js_syntax::{AnyJsFunctionBody, JsFileSource, JsLanguage}; use std::fmt; @@ -172,6 +173,9 @@ pub struct JsFormatOptions { /// Attribute position style. By default auto. attribute_position: AttributePosition, + + // @todo + space_inside_stuff: SpaceInsideStuff, } impl JsFormatOptions { @@ -191,6 +195,7 @@ impl JsFormatOptions { bracket_spacing: BracketSpacing::default(), bracket_same_line: BracketSameLine::default(), attribute_position: AttributePosition::default(), + space_inside_stuff: SpaceInsideStuff::default(), } } @@ -204,6 +209,11 @@ impl JsFormatOptions { self } + pub fn with_space_inside_stuff(mut self, space_inside_stuff: SpaceInsideStuff) -> Self { + self.space_inside_stuff = space_inside_stuff; + self + } + pub fn with_bracket_same_line(mut self, bracket_same_line: BracketSameLine) -> Self { self.bracket_same_line = bracket_same_line; self @@ -271,6 +281,10 @@ impl JsFormatOptions { self.bracket_same_line = bracket_same_line; } + pub fn set_space_inside_stuff(&mut self, space_inside_stuff: SpaceInsideStuff) { + self.space_inside_stuff = space_inside_stuff; + } + pub fn set_indent_style(&mut self, indent_style: IndentStyle) { self.indent_style = indent_style; } @@ -318,6 +332,10 @@ impl JsFormatOptions { self.bracket_spacing } + pub fn space_inside_stuff(&self) -> SpaceInsideStuff { + self.space_inside_stuff + } + pub fn bracket_same_line(&self) -> BracketSameLine { self.bracket_same_line } @@ -399,7 +417,8 @@ impl fmt::Display for JsFormatOptions { writeln!(f, "Arrow parentheses: {}", self.arrow_parentheses)?; writeln!(f, "Bracket spacing: {}", self.bracket_spacing.value())?; writeln!(f, "Bracket same line: {}", self.bracket_same_line.value())?; - writeln!(f, "Attribute Position: {}", self.attribute_position) + writeln!(f, "Attribute Position: {}", self.attribute_position)?; + writeln!(f, "Space inside stuff: {}", self.space_inside_stuff) } } 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 bc279f331d0d..b3782c82fe65 100644 --- a/crates/biome_js_formatter/src/js/statements/if_statement.rs +++ b/crates/biome_js_formatter/src/js/statements/if_statement.rs @@ -24,6 +24,7 @@ impl FormatNodeRule for FormatJsIfStatement { let l_paren_token = l_paren_token?; let r_paren_token = r_paren_token?; let consequent = consequent?; + let should_insert_space_inside_parens = f.options().space_inside_stuff().value(); write!( f, @@ -31,7 +32,10 @@ impl FormatNodeRule for FormatJsIfStatement { 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_inside_parens + )), r_paren_token.format(), FormatStatementBody::new(&consequent), ]),] diff --git a/crates/biome_js_formatter/tests/quick_test.rs b/crates/biome_js_formatter/tests/quick_test.rs index 21800bd020c7..9c828cbc7052 100644 --- a/crates/biome_js_formatter/tests/quick_test.rs +++ b/crates/biome_js_formatter/tests/quick_test.rs @@ -1,4 +1,4 @@ -use biome_formatter::{AttributePosition, IndentStyle, LineWidth, QuoteStyle}; +use biome_formatter::{AttributePosition, IndentStyle, LineWidth, QuoteStyle, SpaceInsideStuff}; use biome_formatter_test::check_reformat::CheckReformat; use biome_js_formatter::context::{ArrowParentheses, JsFormatOptions, Semicolons}; use biome_js_formatter::{format_node, JsFormatLanguage}; @@ -17,6 +17,7 @@ fn quick_test() { export let shim: typeof import("./foo2") = { Bar: Bar2 }; + if (true) {} "#; let source_type = JsFileSource::tsx(); let tree = parse( @@ -31,7 +32,8 @@ export let shim: typeof import("./foo2") = { .with_quote_style(QuoteStyle::Double) .with_jsx_quote_style(QuoteStyle::Single) .with_arrow_parentheses(ArrowParentheses::AsNeeded) - .with_attribute_position(AttributePosition::Multiline); + .with_attribute_position(AttributePosition::Multiline) + .with_space_inside_stuff(SpaceInsideStuff::from(false)); let doc = format_node(options.clone(), &tree.syntax()).unwrap(); let result = doc.print().unwrap(); 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 c58dedc80864..e2e52d47f4ef 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/array/array_nested.js +snapshot_kind: text --- # Input @@ -70,6 +71,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 0b4f6726d3dc..b129205b9a1f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/array/binding_pattern.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 da3d2a70874d..1b9e642133c7 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/array/empty_lines.js +snapshot_kind: text --- # Input @@ -41,6 +42,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4aef4655e44a..9d9724d05236 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/array/spaces.js +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 cc59224f4ad3..463256e3f88a 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/array/spread.js +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 b1b90019c625..4a4a0e39d92b 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs -info: js/module/array/trailing-comma/es5/array_trailing_comma.js +info: js/module/array/trailing-commas/es5/array_trailing_commas.js +snapshot_kind: text --- # Input @@ -39,6 +40,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -72,6 +74,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 c06990538a50..14854feed534 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs -info: js/module/array/trailing-comma/none/array_trailing_comma.js +info: js/module/array/trailing-commas/none/array_trailing_commas.js +snapshot_kind: text --- # Input @@ -39,6 +40,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -72,6 +74,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9f8c510c189b..d269d122811f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/arrow-comments.js +snapshot_kind: text --- # Input @@ -50,6 +51,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -91,6 +93,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 0ff38e4fa4fa..f62d90f4e320 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/arrow_chain_comments.js +snapshot_kind: text --- # Input @@ -38,6 +39,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -75,6 +77,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8b4cbe9958cf..608f9736ca17 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/arrow_function.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -66,6 +68,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 12ef1e11110d..772775b927be 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/arrow_nested.js +snapshot_kind: text --- # Input @@ -56,6 +57,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -103,6 +105,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 2cbbe22f5cb6..dc27fe80d34a 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/arrow_test_callback.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -63,6 +65,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 c17eb8753200..317f95fe88a7 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/assignment_binding_line_break.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -66,6 +68,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 ebbc54288eaf..4c1ad6c599f7 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/call.js +snapshot_kind: text --- # Input @@ -73,6 +74,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -147,6 +149,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 709cafc2ff68..8d40ac6308be 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/curried_indents.js +snapshot_kind: text --- # Input @@ -72,6 +73,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -140,6 +142,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 18ea7adc6af9..ca7456155b19 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/currying.js +snapshot_kind: text --- # Input @@ -79,6 +80,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -170,6 +172,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4a5e74d4348f..06b81aaf30b7 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/params.js +snapshot_kind: text --- # Input @@ -355,6 +356,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -683,6 +685,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 e2bc078ccd8a..31a705b0252f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/assignment/array-assignment-holes.js +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 997e1284c8df..700dcd52fc84 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/assignment/assignment.js +snapshot_kind: text --- # Input @@ -198,6 +199,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8dd9a44cc486..9b96f0bb9b9d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/assignment/assignment_ignore.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4e09cbdf4aa5..38d3a6aa399e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/binding/array-binding-holes.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -52,6 +54,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 1dec004baf6a..770fa50d2219 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/binding/array_binding.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -59,6 +61,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 22a3474ce8fc..69bea9afab6c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/binding/identifier_binding.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -57,6 +59,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9b6f61765c60..3dc4293fb515 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/binding/nested_bindings.js +snapshot_kind: text --- # Input @@ -80,6 +81,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -199,6 +201,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 fdf343bdeb21..6c100e672435 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/binding/object_binding.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -67,6 +69,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4daaf14a9c19..2443880d0fc6 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/bom_character.js +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 b8b93cdc3f93..eb0d00e6a490 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/call/call_chain.js +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4e2346dc9fb7..98bc58d04d16 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/call/simple_arguments.js +snapshot_kind: text --- # Input @@ -113,6 +114,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 0c1f2d667a7d..41de8a99cff6 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/call_expression.js +snapshot_kind: text --- # Input @@ -98,6 +99,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 d798a9bd3ca8..397bbcb05e04 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/class/class.js +snapshot_kind: text --- # Input @@ -99,6 +100,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 b16b99360f7b..e6871e48f8bb 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/class/class_comments.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 51f43a20105e..01e7a78d91ac 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/class/private_method.js +snapshot_kind: text --- # Input @@ -45,6 +46,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 eea76cf22b58..b764df712d57 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/comments.js +snapshot_kind: text --- # Input @@ -115,6 +116,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 b3c25344f110..ccf5779223cc 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/comments/import_exports.js +snapshot_kind: text --- # Input @@ -43,6 +44,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 0e1e99ce2cde..4b84a340eb89 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/comments/nested_comments/nested_comments.js +snapshot_kind: text --- # Input @@ -36,6 +37,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -67,6 +69,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 cd311174d623..50775c15e911 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/declarations/variable_declaration.js +snapshot_kind: text --- # Input @@ -294,6 +295,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 61f3452a1618..95edaa626d99 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/class_members_call_decorator.js +snapshot_kind: text --- # Input @@ -121,6 +122,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 f9212d5726b6..e6947e647866 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/class_members_mixed.js +snapshot_kind: text --- # Input @@ -121,6 +122,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 5fa04bb7f95a..f3f0af301878 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/class_members_simple.js +snapshot_kind: text --- # Input @@ -121,6 +122,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9975a56cf3b8..66f06ad02733 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/class_simple.js +snapshot_kind: text --- # Input @@ -77,6 +78,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 afc75352263f..31705f56cb23 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/class_simple_call_decorator.js +snapshot_kind: text --- # Input @@ -77,6 +78,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 2c9f4a1a5e5d..574c2e3334f1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/export_default_1.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 74d0245dfbb8..53adeead42e8 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/export_default_2.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 1e98cab550f3..a3941e5b9dce 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/export_default_3.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 054366bf61d7..2681621f90fa 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/export_default_4.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 6642efe75b42..b9186f57e8ce 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/expression.js +snapshot_kind: text --- # Input @@ -50,6 +51,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 c83d09662572..ac4b131910a1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/decorators/multiline.js +snapshot_kind: text --- # Input @@ -45,6 +46,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8a87cb0ac943..5e8ad7282f7f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/each/each.js +snapshot_kind: text --- # Input @@ -95,6 +96,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 621484f17428..85c816fea46d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/bracket-spacing/export_bracket_spacing.js +snapshot_kind: text --- # Input @@ -48,6 +49,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -98,6 +100,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 5fec2a5fbbcb..954d195b597f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/class_clause.js +snapshot_kind: text --- # Input @@ -38,6 +39,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 3e1e582dad23..be5004c94813 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/expression_clause.js +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8a857366f226..fee46e416598 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/from_clause.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 62602d678e93..3aea4384682e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/function_clause.js +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 104afc234857..3b40a80de967 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/named_clause.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 f455d4ea7495..213788c0e5a2 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/named_from_clause.js +snapshot_kind: text --- # Input @@ -48,6 +49,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 007b3e99591b..1b3f0cf0708d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/trailing-commas/es5/export_trailing_commas.js +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -60,6 +62,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 ab69eb2e1b0e..91bf1bba560b 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/trailing-commas/none/export_trailing_commas.js +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -60,6 +62,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 ff2795342471..98866997334d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/export/variable_declaration.js +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 2d0e5ba2dcb5..91316c63fe5f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/binary_expression.js +snapshot_kind: text --- # Input @@ -63,6 +64,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 84b813c67634..e83b51500fcb 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/binary_range_expression.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 b6607acc385e..36788779fc58 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/binaryish_expression.js +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 25d247c78392..bb60c9e2ee28 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/call_arguments.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 143606b81cdc..0559e65dc625 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/computed-member-expression.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 0c5120ebfb67..0c4b7795b17d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/conditional_expression.js +snapshot_kind: text --- # Input @@ -38,6 +39,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 3dd9ad78f805..9964172258b1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/import_meta_expression/import_meta_expression.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -63,6 +65,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 1541c7e46e60..ce0ab21df2c6 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/literal_expression.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 77f87b5947b2..96f28a0bebef 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/logical_expression.js +snapshot_kind: text --- # Input @@ -141,6 +142,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 a515f7866d4a..5186784b7dd4 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/member-chain/complex_arguments.js +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 d6ba8fb1d752..59d73a1998dd 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/member-chain/computed.js +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 b7b2b8408e94..e50416e300db 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/member-chain/inline-merge.js +snapshot_kind: text --- # Input @@ -41,6 +42,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 7c3f0e3ee78e..1d7714a9aa92 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/member-chain/multi_line.js +snapshot_kind: text --- # Input @@ -102,6 +103,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8b8b6e06e900..1d7140b0f070 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/member-chain/static_member_regex.js +snapshot_kind: text --- # Input @@ -53,6 +54,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 015f1a85d3ac..beae00cce86d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/nested_conditional_expression/nested_conditional_expression.js +snapshot_kind: text --- # Input @@ -41,6 +42,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -75,6 +77,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 d13ca3761d63..4c02bb0ad3b2 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/new_expression.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8efc8145d377..87043527e93f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/post_update_expression.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 00d5e880c4f3..8a87b5cf8f0d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/pre_update_expression.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 ad1772c6a44f..2d58e9a85c8f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/sequence_expression.js +snapshot_kind: text --- # Input @@ -62,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 fc0169856f75..21fed4ab4143 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/static_member_expression.js +snapshot_kind: text --- # Input @@ -49,6 +50,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 0aa189a05bb0..f79fca515cc5 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/this_expression.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9c7c51623dec..c686e1f357f4 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/unary_expression.js +snapshot_kind: text --- # Input @@ -46,6 +47,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 a0ce39078cbb..a2e3239692d1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/expression/unary_expression_verbatim_argument.js +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 922a2c74eedd..36af0f4e2f60 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/function/function.js +snapshot_kind: text --- # Input @@ -61,6 +62,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9189ddd98184..408a50dfda62 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/function/function_args.js +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 23235876012d..ab7e5fabf786 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/function/function_comments.js +snapshot_kind: text --- # Input @@ -68,6 +69,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 a78df2ee5eaf..83004f07c014 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/ident.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 5f54dce95645..f38776b3ee75 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/bare_import.js +snapshot_kind: text --- # Input @@ -52,6 +53,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 688f06203a33..57f74c9950f9 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/bracket-spacing/import_bracket_spacing.js +snapshot_kind: text --- # Input @@ -58,6 +59,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -106,6 +108,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 998a947f7a75..7a4b4664bb0a 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/default_import.js +snapshot_kind: text --- # Input @@ -40,6 +41,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 5e3b9c3b45e5..71a86f492467 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/import_call.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 499f4e959b99..e5606febba92 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/import_specifiers.js +snapshot_kind: text --- # Input @@ -61,6 +62,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 0b46904e4049..8e9a202af79c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/named_import_clause.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 480dc431acef..7d504b6184c3 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/namespace_import.js +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 38faf9330082..9709f0ce9334 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/trailing-commas/es5/import_trailing_commas.js +snapshot_kind: text --- # Input @@ -59,6 +60,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -120,6 +122,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 74819968fc20..9b90145d14b2 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/import/trailing-commas/none/import_trailing_commas.js +snapshot_kind: text --- # Input @@ -59,6 +60,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -120,6 +122,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 a5e45f49f877..fdea3c81d850 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/indent-width/4/example-1.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -56,6 +58,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 a08d3016ea82..0c6e1a475163 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/indent-width/4/example-2.js +snapshot_kind: text --- # Input @@ -46,6 +47,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -84,6 +86,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 e16dc2552bfc..2f7dd26c08e5 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/indent-width/8/example-1.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -56,6 +58,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 bddefdaa88b9..ee660f657b2a 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/indent-width/8/example-2.js +snapshot_kind: text --- # Input @@ -46,6 +47,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -84,6 +86,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 7e36629a18c5..89c4e543dfeb 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/interpreter-with-trailing-spaces.js +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 18e55d4ec4cd..4c8d7de4edf7 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/interpreter.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 c86c13ac6890..180c3b4f064f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/interpreter_with_empty_line.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8da79d942253..4bc1b1316b24 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/invalid/block_stmt_err.js +snapshot_kind: text --- # Input @@ -39,6 +40,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 5d014c461759..20a2905f706c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/invalid/if_stmt_err.js +snapshot_kind: text --- # Input @@ -45,6 +46,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 3419ba84f327..152ef5f136c1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/line-ending/cr/line_ending.js +snapshot_kind: text --- # Input @@ -46,6 +47,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -84,6 +86,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4d593a06ee62..ed1053f80cd4 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/line-ending/crlf/line_ending.js +snapshot_kind: text --- # Input @@ -46,6 +47,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -84,6 +86,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 2fbec40f4d40..cfa257bd84e8 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/newlines.js +snapshot_kind: text --- # Input @@ -107,6 +108,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 ae56dbb66c11..ccd8823ae9ca 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/no-semi/class.js +snapshot_kind: text --- # Input @@ -147,6 +148,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -284,6 +286,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 80969d337d3f..510a5d8cc22f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/no-semi/issue2006.js +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -66,6 +68,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 94bdfdeee0c8..2e2f59c6a16a 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/no-semi/no-semi.js +snapshot_kind: text --- # Input @@ -109,6 +110,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -221,6 +223,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 e8fcd14043dc..4f3f1c6858a5 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/no-semi/private-field.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -58,6 +60,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9e31dc9a14ac..6abce7969efe 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/no-semi/semicolons-asi.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -52,6 +54,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8ec09d1cfd91..ee65606cee86 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/no-semi/semicolons_range.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -56,6 +58,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 3885c55eebb5..b6d166068ef6 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/number/number.js +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 a6dfc33a8c44..f2dab1a612f3 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/number/number_with_space.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 fdf8879ddae2..707ccc2d7453 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/bracket-spacing/object_bracket_spacing.js +snapshot_kind: text --- # Input @@ -51,6 +52,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -90,6 +92,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 40c406f638e6..5a38365f76b0 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/computed_member.js +snapshot_kind: text --- # Input @@ -48,6 +49,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 ad3e965d2b0f..c042ded2596e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/getter_setter.js +snapshot_kind: text --- # Input @@ -36,6 +37,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 d4f34d5b5f06..4d810a496462 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/numeric-property.js +snapshot_kind: text --- # Input @@ -66,6 +67,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 64e67fc2142d..78eb9e4319ba 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/object.js +snapshot_kind: text --- # Input @@ -61,6 +62,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 c7330ca6a8c6..4fb8cf74f16d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/object_comments.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 1fb7fb6f75a6..3968c187d501 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/octal_literals_key.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4ecd9a6b9bbe..417ded94ea54 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/property_key.js +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 a8f1e9c4e833..61cb104000a8 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/property_object_member.js +snapshot_kind: text --- # Input @@ -117,6 +118,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 45679e611529..51a6adba0aa9 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/trailing-commas/es5/object_trailing_commas.js +snapshot_kind: text --- # Input @@ -38,6 +39,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -70,6 +72,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 76162e70d76f..af35f9e40ad8 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/object/trailing-commas/none/object_trailing_commas.js +snapshot_kind: text --- # Input @@ -38,6 +39,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -70,6 +72,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js diff --git a/crates/biome_js_formatter/tests/specs/js/module/parentheses-with-space.js b/crates/biome_js_formatter/tests/specs/js/module/parentheses-with-space.js new file mode 100644 index 000000000000..3ac269177b50 --- /dev/null +++ b/crates/biome_js_formatter/tests/specs/js/module/parentheses-with-space.js @@ -0,0 +1,22 @@ +let a = { + ...spread, + + foo() { + }, + + *foo() { + }, + ...spread, +} + +const x = { apple: "banna"}; + +const y = { + apple: "banana", +}; + +({a, b, c} = {a: 'apple', b: 'banana', c: 'coconut'}); + +({ + a, b, c +} = {a: 'apple', b: 'banana', c: 'coconut' }); diff --git a/crates/biome_js_formatter/tests/specs/js/module/parentheses-with-space.js.snap b/crates/biome_js_formatter/tests/specs/js/module/parentheses-with-space.js.snap new file mode 100644 index 000000000000..9b6555438289 --- /dev/null +++ b/crates/biome_js_formatter/tests/specs/js/module/parentheses-with-space.js.snap @@ -0,0 +1,77 @@ +--- +source: crates/biome_formatter_test/src/snapshot_builder.rs +info: js/module/parentheses-with-space.js +snapshot_kind: text +--- +# Input + +```js +let a = { + ...spread, + + foo() { + }, + + *foo() { + }, + ...spread, +} + +const x = { apple: "banna"}; + +const y = { + apple: "banana", +}; + +({a, b, c} = {a: 'apple', b: 'banana', c: 'coconut'}); + +({ + a, b, c +} = {a: 'apple', b: 'banana', c: 'coconut' }); + +``` + + +============================= + +# Outputs + +## Output 1 + +----- +Indent style: Tab +Indent width: 2 +Line ending: LF +Line width: 80 +Quote style: Double Quotes +JSX quote style: Double Quotes +Quote properties: As needed +Trailing commas: All +Semicolons: Always +Arrow parentheses: Always +Bracket spacing: true +Bracket same line: false +Attribute Position: Auto +Space inside stuff: false +----- + +```js +let a = { + ...spread, + + foo() {}, + + *foo() {}, + ...spread, +}; + +const x = { apple: "banna" }; + +const y = { + apple: "banana", +}; + +({ a, b, c } = { a: "apple", b: "banana", c: "coconut" }); + +({ a, b, c } = { a: "apple", b: "banana", c: "coconut" }); +``` 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 58a42dc834d5..d0b91d5a7649 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/parentheses/parentheses.js +snapshot_kind: text --- # Input @@ -52,6 +53,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 a779f867da33..640a7cfc4de5 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/parentheses/range_parentheses_binary.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js diff --git a/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/options.json b/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/options.json new file mode 100644 index 000000000000..d205ee9410e3 --- /dev/null +++ b/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/options.json @@ -0,0 +1,8 @@ +{ + "$schema": "../../../../../../../../packages/@biomejs/biome/configuration_schema.json", + "javascript": { + "formatter": { + "spaceInsideStuff": true + } + } +} diff --git a/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/parentheses.js b/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/parentheses.js new file mode 100644 index 000000000000..d919d2fce4db --- /dev/null +++ b/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/parentheses.js @@ -0,0 +1,24 @@ +(foo++)?.(); +async () => { + (await foo)?.(); +} +(+foo)?.(); ++(+foo); +class Foo extends (+Bar) {} +class Foo extends (Bar ?? Baz) {} +const foo = class extends (Bar ?? Baz) {} +;(1) +;(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); + +(b + c)``; + +const foo = { ...(a || b) }; + +async function *f() { + await (a || b); + yield (a && b); +} + +const a = () => ({}?.() && a); + +(list || list2)?.[(list || list2)]; diff --git a/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/parentheses.js.snap b/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/parentheses.js.snap new file mode 100644 index 000000000000..2a9f8e147cfa --- /dev/null +++ b/crates/biome_js_formatter/tests/specs/js/module/parentheses/space_inside_stuff/parentheses.js.snap @@ -0,0 +1,141 @@ +--- +source: crates/biome_formatter_test/src/snapshot_builder.rs +info: js/module/parentheses/space_inside_stuff/parentheses.js +snapshot_kind: text +--- +# Input + +```js +(foo++)?.(); +async () => { + (await foo)?.(); +} +(+foo)?.(); ++(+foo); +class Foo extends (+Bar) {} +class Foo extends (Bar ?? Baz) {} +const foo = class extends (Bar ?? Baz) {} +;(1) +;(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); + +(b + c)``; + +const foo = { ...(a || b) }; + +async function *f() { + await (a || b); + yield (a && b); +} + +const a = () => ({}?.() && a); + +(list || list2)?.[(list || list2)]; + +``` + + +============================= + +# Outputs + +## Output 1 + +----- +Indent style: Tab +Indent width: 2 +Line ending: LF +Line width: 80 +Quote style: Double Quotes +JSX quote style: Double Quotes +Quote properties: As needed +Trailing commas: All +Semicolons: Always +Arrow parentheses: Always +Bracket spacing: true +Bracket same line: false +Attribute Position: Auto +Space inside stuff: false +----- + +```js +(foo++)?.(); +async () => { + (await foo)?.(); +}; +(+foo)?.(); ++(+foo); +class Foo extends (+Bar) {} +class Foo extends (Bar ?? Baz) {} +const foo = class extends (Bar ?? Baz) {}; +1; +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; + +(b + c)``; + +const foo = { ...(a || b) }; + +async function* f() { + await (a || b); + yield a && b; +} + +const a = () => ({})?.() && a; + +(list || list2)?.[list || list2]; +``` + +# Lines exceeding max width of 80 characters +``` + 11: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; +``` + +## Output 1 + +----- +Indent style: Tab +Indent width: 2 +Line ending: LF +Line width: 80 +Quote style: Double Quotes +JSX quote style: Double Quotes +Quote properties: As needed +Trailing commas: All +Semicolons: Always +Arrow parentheses: Always +Bracket spacing: true +Bracket same line: false +Attribute Position: Auto +Space inside stuff: false +----- + +```js +(foo++)?.(); +async () => { + (await foo)?.(); +}; +(+foo)?.(); ++(+foo); +class Foo extends (+Bar) {} +class Foo extends (Bar ?? Baz) {} +const foo = class extends (Bar ?? Baz) {}; +1; +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; + +(b + c)``; + +const foo = { ...(a || b) }; + +async function* f() { + await (a || b); + yield a && b; +} + +const a = () => ({})?.() && a; + +(list || list2)?.[list || list2]; +``` + +# Lines exceeding max width of 80 characters +``` + 11: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; +``` 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 35ddace663f4..70214a2041bd 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/range/range_parenthesis_after_semicol.js +snapshot_kind: text --- # Input @@ -39,6 +40,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 f22cc3027cb9..c1cc11c902ab 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/range/range_parenthesis_after_semicol_1.js +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 e6bf3a8d8bb5..c93fa689a0c6 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/script.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 bbdbbdca5d90..07b6c9a52919 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/block_statement.js +snapshot_kind: text --- # Input @@ -38,6 +39,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 d748eed97ecf..e2187166a96d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/continue_stmt.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 7e1e725f3308..e9b24d96a6b3 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/do_while.js +snapshot_kind: text --- # Input @@ -43,6 +44,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 cf3aa720a7cb..9449de68fd23 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/empty_blocks.js +snapshot_kind: text --- # Input @@ -58,6 +59,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 ef46288c8275..376be9ed1dea 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/for_in.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 bc6155b972e4..c2c3f775d53c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/for_loop.js +snapshot_kind: text --- # Input @@ -46,6 +47,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 24f37fd3969c..fb78867520b7 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/for_of.js +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 886e5ade98f1..f5626187dad9 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/if_chain.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 686fdf61d65d..9b4e89d8b9db 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/if_else.js +snapshot_kind: text --- # Input @@ -98,6 +99,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 98db0260d4de..54a70fedf7d0 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/return.js +snapshot_kind: text --- # Input @@ -54,6 +55,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4e03d62df862..d3dc6c64dd9e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/return_verbatim_argument.js +snapshot_kind: text --- # Input @@ -54,6 +55,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9ffb699945c4..f621cb9884f5 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/statement.js +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 ee9cb02a7c61..793df5771698 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/switch.js +snapshot_kind: text --- # Input @@ -80,6 +81,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 2f3538dc289a..71436424a183 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/switch_comment.js +snapshot_kind: text --- # Input @@ -47,6 +48,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 655679bd386e..ad2057ddb797 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/throw.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 e1ce02e8988b..c0eac5b2640d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/try_catch_finally.js +snapshot_kind: text --- # Input @@ -55,6 +56,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 5744e60cd8c5..58c9b2f99564 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/statement/while_loop.js +snapshot_kind: text --- # Input @@ -55,6 +56,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 d9599447777c..1d8ebc78507b 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/string/quotePreserve/directives.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -57,6 +59,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 d6a63809be2b..f061bcf1fa9e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/string/quotePreserve/parentheses_token.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -52,6 +54,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 718588f8e67e..d2a292ac961c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/string/quotePreserve/properties_quotes.js +snapshot_kind: text --- # Input @@ -72,6 +73,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -137,6 +139,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9db5d44ec2aa..fd0aa297683b 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/string/quotePreserve/string.js +snapshot_kind: text --- # Input @@ -86,6 +87,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -171,6 +173,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 9bedf4c8528e..241506b268e1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/string/quoteSingle/directives.js +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -57,6 +59,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 033430c47d17..c5f6314351bd 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/string/quoteSingle/parentheses_token.js +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -52,6 +54,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 31f88e9bf920..7fb55578b166 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/string/quoteSingle/properties_quotes.js +snapshot_kind: text --- # Input @@ -72,6 +73,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -137,6 +139,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 38ac219d470d..2793ba0f44af 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/string/quoteSingle/string.js +snapshot_kind: text --- # Input @@ -86,6 +87,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js @@ -171,6 +173,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 16c0c4ae47e1..674d532e33e9 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/suppression.js +snapshot_kind: text --- # Input @@ -57,6 +58,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 4e6616228c49..31a649de50a4 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/template/template.js +snapshot_kind: text --- # Input @@ -100,6 +101,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 8c2107e67bdd..a6d1f1f8fac2 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/with.js +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 1f1a7185a0cf..9c3740a87d3c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/script/script.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 44388d27703b..cee2e8cc5f9d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/script/script_with_bom.js +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 c48fcd07622d..fd52dfbdce25 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/script/with.js +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```js 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 fa0a374cf9b2..3083afec18c6 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/arrow_function.jsx +snapshot_kind: text --- # Input @@ -69,6 +70,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 dca2b7523a7a..f28f27951ba2 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/attribute_escape.jsx +snapshot_kind: text --- # Input @@ -44,6 +45,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 c19b44e279e9..36ac332003d1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/attribute_position/attribute_position.jsx +snapshot_kind: text --- # Input @@ -56,6 +57,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx @@ -115,6 +117,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Multiline +Space inside stuff: false ----- ```jsx 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 d726901c1d17..a48dd93be9fd 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/attributes.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/attributes.jsx.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/attributes.jsx +snapshot_kind: text --- # Input @@ -105,6 +106,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 6bad9dc34313..9f6e16ac39db 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 @@ -1,7 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs -assertion_line: 212 info: jsx/bracket_same_line/bracket_same_line.jsx +snapshot_kind: text --- # Input @@ -63,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx @@ -117,6 +118,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: true Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 0648e5036ad6..07fb1fbb8867 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/comments.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/comments.jsx.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/comments.jsx +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 df2ceea9ab30..74f3a957542a 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/conditional.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/conditional.jsx.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/conditional.jsx +snapshot_kind: text --- # Input @@ -78,6 +79,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 0729f8461112..e68c411c1648 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/element.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/element.jsx.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/element.jsx +snapshot_kind: text --- # Input @@ -359,6 +360,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 08b7a9933c68..7f2fc0ea8658 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/fragment.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/fragment.jsx.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/fragment.jsx +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 e7d14999a3c8..1d195c75454a 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/multiline_jsx_string/multiline_jsx_string.jsx +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx @@ -56,6 +58,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 1f98f90b71ff..1974854634c2 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/new-lines.jsx +snapshot_kind: text --- # Input @@ -79,6 +80,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 db6c91045a25..a37988a5ace2 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/parentheses_range.jsx +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 b42e52a22f73..daa0bf075973 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/quote_style/jsx_double_string_double/quote_style.jsx +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx @@ -61,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 8c494d252255..9a18cf3e39f3 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/quote_style/jsx_double_string_single/quote_style.jsx +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx @@ -61,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 91c6f6f28523..e33455425628 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/quote_style/jsx_single_string_double/quote_style.jsx +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx @@ -61,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 9e67b5692086..7a2f99a0bdc5 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/quote_style/jsx_single_string_single/quote_style.jsx +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx @@ -61,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 aa02732e79f7..032dee7d36d1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/self_closing.jsx +snapshot_kind: text --- # Input @@ -50,6 +51,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 2ae44f5f6aa9..863b8d4f23ea 100644 --- a/crates/biome_js_formatter/tests/specs/jsx/smoke.jsx.snap +++ b/crates/biome_js_formatter/tests/specs/jsx/smoke.jsx.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/smoke.jsx +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 0b71b9e0f65d..c313592e66b6 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: jsx/text_children.jsx +snapshot_kind: text --- # Input @@ -130,6 +131,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```jsx 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 cb320edd0818..9eb6d293110c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/arrow/arrow_parentheses.ts +snapshot_kind: text --- # Input @@ -42,6 +43,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -76,6 +78,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 58f51107720d..b51c0bc7505d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/arrow/long_arrow_parentheses_with_line_break.ts +snapshot_kind: text --- # Input @@ -44,6 +45,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -80,6 +82,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 c12af5abc23c..130abea2868c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/arrow/parameter_default_binding_line_break.ts +snapshot_kind: text --- # Input @@ -49,6 +50,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -84,6 +86,7 @@ Arrow parentheses: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 05be128aaffb..a9bb6d4420ed 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/arrow_chain.ts +snapshot_kind: text --- # Input @@ -40,6 +41,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 39a04acbe559..678f03ab457d 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/assignment/as_assignment.ts +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 97d6e76177ba..03430a1c3ba7 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/assignment/assignment.ts +snapshot_kind: text --- # Input @@ -42,6 +43,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 a0745f97b789..bdf8ca07458e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/assignment/assignment_comments.ts +snapshot_kind: text --- # Input @@ -50,6 +51,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 79859e94e3df..f0a334cf48d8 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/assignment/property_assignment_comments.ts +snapshot_kind: text --- # Input @@ -62,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 50f33ce44272..64e1e50edc11 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/assignment/type_assertion_assignment.ts +snapshot_kind: text --- # Input @@ -43,6 +44,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 13008f2deeaf..7c95da881fd3 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/binding/definite_variable.ts +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 6178e683d26a..c7a92c64a5af 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/call_expression.ts +snapshot_kind: text --- # Input @@ -62,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 8b0dea337175..6df08f05b03a 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/class/accessor.ts +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts diff --git a/crates/biome_js_formatter/tests/specs/ts/class/assigment_layout.ts.snap b/crates/biome_js_formatter/tests/specs/ts/class/assigment_layout.ts.snap index 9ca4583e7edd..f7000f456dba 100644 --- a/crates/biome_js_formatter/tests/specs/ts/class/assigment_layout.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/class/assigment_layout.ts.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/class/assigment_layout.ts +snapshot_kind: text --- # Input @@ -36,6 +37,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 811318689fdf..7046778e5024 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/class/constructor_parameter.ts +snapshot_kind: text --- # Input @@ -73,6 +74,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 17f9135e08a0..9806eb003f7e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/class/implements_clause.ts +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 5f9e4068193d..e7f1793bb827 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/class/readonly_ambient_property.ts +snapshot_kind: text --- # Input @@ -39,6 +40,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 25eddfa95a4f..07fa4e0f9644 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/class/trailing_commas/es5/class_trailing_commas.ts +snapshot_kind: text --- # Input @@ -40,6 +41,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -86,6 +88,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 6e90634a3bb5..22ffe2c02e76 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/class/trailing_commas/none/class_trailing_commas.ts +snapshot_kind: text --- # Input @@ -40,6 +41,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -86,6 +88,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 077bb6631b80..179e36bae3b8 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/declaration/class.ts +snapshot_kind: text --- # Input @@ -88,6 +89,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 aead83c8e546..93b23cad67fb 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/declaration/declare_function.ts +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 bf92f6c108ca..0a290f2f1d1b 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/declaration/global_declaration.ts +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 f95ab0f9fc0e..2a4b6a66cfe2 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/declaration/interface.ts +snapshot_kind: text --- # Input @@ -76,6 +77,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 2f08f5443ec7..e89a80bb2cd1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/declaration/variable_declaration.ts +snapshot_kind: text --- # Input @@ -116,6 +117,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 2c1d95b04cf3..34c43233ca44 100644 --- a/crates/biome_js_formatter/tests/specs/ts/declare.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/declare.ts.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/declare.ts +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 0dc5f4fb7222..9494afd41e7d 100644 --- a/crates/biome_js_formatter/tests/specs/ts/decoartors.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/decoartors.ts.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/decoartors.ts +snapshot_kind: text --- # Input @@ -287,6 +288,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 8d406a326935..eeeceb6d01b1 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/decorators/class_members.ts +snapshot_kind: text --- # Input @@ -123,6 +124,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 cedb7084b35d..a7bbe6126265 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/enum/trailing_commas_es5/enum_trailing_commas.ts +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -60,6 +62,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 d97e801bb5f8..fbbcc7de19ce 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/enum/trailing_commas_none/enum_trailing_commas.ts +snapshot_kind: text --- # Input @@ -34,6 +35,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -60,6 +62,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 4a5cb45d7c3e..431ed415d27f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/expression/as_expression.ts +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 adf5c45466df..33f5120f2664 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/expression/bracket-spacing/expression_bracket_spacing.ts +snapshot_kind: text --- # Input @@ -96,6 +97,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -213,6 +215,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 c710c497765d..72f8ce2898d9 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/expression/non_null_expression.ts +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 44c974ce4b1a..b9401034176c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/expression/type_assertion_expression.ts +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 0ba2448f4b5b..0c32f3c815ed 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/expression/type_expression.ts +snapshot_kind: text --- # Input @@ -135,6 +136,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 51616867a27d..e71ec37af32c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/expression/type_member.ts +snapshot_kind: text --- # Input @@ -78,6 +79,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 68107e4c4fdc..4c96fac39ef4 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/function/parameters/line_width_100/function_parameters.ts +snapshot_kind: text --- # Input @@ -62,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -118,6 +120,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 156eee866e50..adec18a61c9f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/function/parameters/line_width_120/function_parameters.ts +snapshot_kind: text --- # Input @@ -62,6 +63,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -118,6 +120,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 0777f3ebe031..d4d7b35ebae9 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/function/trailing_commas/es5/function_trailing_commas.ts +snapshot_kind: text --- # Input @@ -66,6 +67,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -126,6 +128,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 b7d40faea8b1..5639510085ac 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/function/trailing_commas/none/function_trailing_commas.ts +snapshot_kind: text --- # Input @@ -66,6 +67,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -126,6 +128,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 4a0dbcf40c58..7aa1be882b85 100644 --- a/crates/biome_js_formatter/tests/specs/ts/issue1511.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/issue1511.ts.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/issue1511.ts +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 e2638fe7fc61..ce70bdf8f388 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/module/export_clause.ts +snapshot_kind: text --- # Input @@ -51,6 +52,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 ea2b5c7552b1..14ed3b86b8f6 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/module/external_module_reference.ts +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 5c19d02d8938..69cc771badd3 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/module/import_type/import_types.ts +snapshot_kind: text --- # Input @@ -51,6 +52,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -87,6 +89,7 @@ Arrow parentheses: Always Bracket spacing: false Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 32b92586f6b1..791ea85f713a 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/module/module_declaration.ts +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 4eeb803fc912..f290e62e54f0 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/module/qualified_module_name.ts +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 2ae02b08d870..f3fdcb1f9d19 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/no-semi/class.ts +snapshot_kind: text --- # Input @@ -81,6 +82,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -154,6 +156,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 f5767a8fd92a..c6eb895985b3 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/no-semi/non-null.ts +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -56,6 +58,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 994cded7ce3e..9acbe9093265 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/no-semi/statements.ts +snapshot_kind: text --- # Input @@ -43,6 +44,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -77,6 +79,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 96bd8c1332f9..812935a33474 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/no-semi/types.ts +snapshot_kind: text --- # Input @@ -42,6 +43,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -80,6 +82,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 aeb80ac27ec9..cdb928dca323 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/object/trailing_commas_es5/object_trailing_commas.ts +snapshot_kind: text --- # Input @@ -51,6 +52,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -93,6 +95,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 47370310521b..9357a1bb180e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/object/trailing_commas_none/object_trailing_commas.ts +snapshot_kind: text --- # Input @@ -51,6 +52,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -93,6 +95,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 a031e4e44209..0fff042b9654 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/parameters/issue-1356/parameter_type_annotation_semicolon.ts +snapshot_kind: text --- # Input @@ -38,6 +39,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -69,6 +71,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 a19cb41da5b8..f45c7b5da96e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/parameters/parameters.ts +snapshot_kind: text --- # Input @@ -31,6 +32,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 bb23ded5aa2f..1ccda9915fea 100644 --- a/crates/biome_js_formatter/tests/specs/ts/parenthesis.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/parenthesis.ts.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/parenthesis.ts +snapshot_kind: text --- # Input @@ -38,6 +39,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 14ff0f9dd669..0d7af6b69e97 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/simple_arguments.ts +snapshot_kind: text --- # Input @@ -76,6 +77,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 6236f6a1c1ad..82688b597d0c 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/statement/empty_block.ts +snapshot_kind: text --- # Input @@ -30,6 +31,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 6d4e3be0076f..b89e613abfb0 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/statement/enum_statement.ts +snapshot_kind: text --- # Input @@ -41,6 +42,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 91950a5333c4..2107b5e35992 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/string/quotePreserve/parameter_quotes.ts +snapshot_kind: text --- # Input @@ -64,6 +65,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -120,6 +122,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 addf27f29cd5..d58d589a150f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/string/quoteSingle/parameter_quotes.ts +snapshot_kind: text --- # Input @@ -64,6 +65,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -120,6 +122,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 a4ebcfbf21bf..b0b6fb4d34e8 100644 --- a/crates/biome_js_formatter/tests/specs/ts/suppressions.ts.snap +++ b/crates/biome_js_formatter/tests/specs/ts/suppressions.ts.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/suppressions.ts +snapshot_kind: text --- # Input @@ -35,6 +36,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 7015d7012fc2..79c1fb31cb25 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/conditional.ts +snapshot_kind: text --- # Input @@ -45,6 +46,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 e87f96ea901b..1d1e6df5f57e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/import_type.ts +snapshot_kind: text --- # Input @@ -37,6 +38,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 2a9bb2585445..0c209d28e4f0 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/import_type_with_resolution_mode.ts +snapshot_kind: text --- # Input @@ -33,6 +34,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 888f5a4ec1f8..34868473803e 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/injfer_in_intersection.ts +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 8e3de4804955..d5c52f3e0257 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/injfer_in_union.ts +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 b8a4275bfab4..e9cb27d084df 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/intersection_type.ts +snapshot_kind: text --- # Input @@ -87,6 +88,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 006ee7b174e7..d26a59938770 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/mapped_type.ts +snapshot_kind: text --- # Input @@ -36,6 +37,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 aa4346f2766d..2565c608515f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/qualified_name.ts +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 058516c48d4b..d26f1062db03 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/template_type.ts +snapshot_kind: text --- # Input @@ -32,6 +33,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 2a565ce7685e..d4765e9ea488 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/trailing-commas/es5/type_trailing_commas.ts +snapshot_kind: text --- # Input @@ -41,6 +42,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -73,6 +75,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 9c3e3ff11089..c74e2e2d22e4 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/trailing-commas/none/type_trailing_commas.ts +snapshot_kind: text --- # Input @@ -41,6 +42,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -73,6 +75,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 41c4e2bdc492..1fa96cd98361 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/type/union_type.ts +snapshot_kind: text --- # Input @@ -278,6 +279,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 90c16fbe9158..bea2fed5137f 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: ts/union/nested_union/nested_union.ts +snapshot_kind: text --- # Input @@ -41,6 +42,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts @@ -74,6 +76,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```ts 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 3bd80102afc0..19e837bccba4 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: tsx/arrow/issue-2736.tsx +snapshot_kind: text --- # Input @@ -48,6 +49,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```tsx 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 3b89cb0920b5..39c55f648133 100644 --- a/crates/biome_js_formatter/tests/specs/tsx/smoke.tsx.snap +++ b/crates/biome_js_formatter/tests/specs/tsx/smoke.tsx.snap @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: tsx/smoke.tsx +snapshot_kind: text --- # Input @@ -29,6 +30,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```tsx 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 a236259ac825..4e3647e33487 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 @@ -1,6 +1,7 @@ --- source: crates/biome_formatter_test/src/snapshot_builder.rs info: tsx/type_param.tsx +snapshot_kind: text --- # Input @@ -43,6 +44,7 @@ Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto +Space inside stuff: false ----- ```tsx diff --git a/packages/@biomejs/backend-jsonrpc/src/workspace.ts b/packages/@biomejs/backend-jsonrpc/src/workspace.ts index e6d0aef1e6fd..31e6939a2866 100644 --- a/packages/@biomejs/backend-jsonrpc/src/workspace.ts +++ b/packages/@biomejs/backend-jsonrpc/src/workspace.ts @@ -521,6 +521,10 @@ export interface PartialJavascriptFormatter { * Whether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI. */ semicolons?: Semicolons; + /** + * @todo + */ + spaceInsideStuff?: SpaceInsideStuff; /** * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all". */ @@ -698,6 +702,7 @@ export type QuoteStyle = "double" | "single"; export type ArrowParentheses = "always" | "asNeeded"; export type QuoteProperties = "asNeeded" | "preserve"; export type Semicolons = "always" | "asNeeded"; +export type SpaceInsideStuff = boolean; /** * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. */ diff --git a/packages/@biomejs/biome/configuration_schema.json b/packages/@biomejs/biome/configuration_schema.json index 46c8a29ad837..74151e34b3c1 100644 --- a/packages/@biomejs/biome/configuration_schema.json +++ b/packages/@biomejs/biome/configuration_schema.json @@ -1656,6 +1656,13 @@ "description": "Whether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI.", "anyOf": [{ "$ref": "#/definitions/Semicolons" }, { "type": "null" }] }, + "spaceInsideStuff": { + "description": "@todo", + "anyOf": [ + { "$ref": "#/definitions/SpaceInsideStuff" }, + { "type": "null" } + ] + }, "trailingComma": { "description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to \"all\".", "anyOf": [ @@ -3367,6 +3374,7 @@ }, "additionalProperties": false }, + "SpaceInsideStuff": { "type": "boolean" }, "StableHookResult": { "oneOf": [ {