--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/babel-plugins/record-tuple-tuple.js --- # Input ```js const tuple1 = #[1, 2, 3]; ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1 +1,2 @@ -const tuple1 = #[1, 2, 3]; +const tuple1 = #; +[1, 2, 3]; ``` # Output ```js const tuple1 = #; [1, 2, 3]; ``` # Errors ``` record-tuple-tuple.js:1:17 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an identifier but instead found '['. > 1 │ const tuple1 = #[1, 2, 3]; │ ^ 2 │ i Expected an identifier here. > 1 │ const tuple1 = #[1, 2, 3]; │ ^ 2 │ record-tuple-tuple.js:1:16 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Private names are only allowed on the left side of a 'in' expression > 1 │ const tuple1 = #[1, 2, 3]; │ ^ 2 │ record-tuple-tuple.js:1:17 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none > 1 │ const tuple1 = #[1, 2, 3]; │ ^ 2 │ i An explicit or implicit semicolon is expected here... > 1 │ const tuple1 = #[1, 2, 3]; │ ^ 2 │ i ...Which is required to end this statement > 1 │ const tuple1 = #[1, 2, 3]; │ ^^^^^^^^^^^^^^^^ 2 │ ```