--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/source-phase-imports/import-source-binding-source.js --- # Input ```js import source source from "x"; ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1 +1,4 @@ -import source source from "x"; +import source +source; +from; +("x"); ``` # Output ```js import source source; from; ("x"); ``` # Errors ``` import-source-binding-source.js:1:15 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `from` but instead found `source` > 1 │ import source source from "x"; │ ^^^^^^ 2 │ i Remove source import-source-binding-source.js:1:22 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none > 1 │ import source source from "x"; │ ^^^^ 2 │ i An explicit or implicit semicolon is expected here... > 1 │ import source source from "x"; │ ^^^^ 2 │ i ...Which is required to end this statement > 1 │ import source source from "x"; │ ^^^^^^^^^^^ 2 │ import-source-binding-source.js:1:27 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none > 1 │ import source source from "x"; │ ^^^ 2 │ i An explicit or implicit semicolon is expected here... > 1 │ import source source from "x"; │ ^^^ 2 │ i ...Which is required to end this statement > 1 │ import source source from "x"; │ ^^^^^^^^ 2 │ ```