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