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