--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/explicit-resource-management/valid-module-block-top-level-using-binding.js --- # Input ```js module { using foo = bar(); } ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1,3 +1,4 @@ -module { +module; +{ using foo = bar(); -}; +} ``` # Output ```js module; { using foo = bar(); } ``` # Errors ``` valid-module-block-top-level-using-binding.js:1:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none > 1 │ module { │ ^ 2 │ using foo = bar(); 3 │ } i An explicit or implicit semicolon is expected here... > 1 │ module { │ ^ 2 │ using foo = bar(); 3 │ } i ...Which is required to end this statement > 1 │ module { │ ^^^^^^^^ 2 │ using foo = bar(); 3 │ } ```