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