--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/module/statement/empty_blocks.js --- # Input ```js // Line break before closing `}` if (true) {} if (true) {} else {} for (x in []) {} for (x of []) {} switch ("test") {} switch ("test") { case "test": {} } test: {} try { } catch { } finally { } // No Line breaks class Test {} function test() {} for (;;) {} while (true) {} do {} while (true); ``` ============================= # Outputs ## Output 1 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```js // Line break before closing `}` if (true) { } if (true) { } else { } for (x in []) { } for (x of []) { } switch ("test") { } switch ("test") { case "test": { } } test: { } try { } catch { } finally { } // No Line breaks class Test {} function test() {} for (;;) {} while (true) {} do {} while (true); ```