--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/module/parentheses/parentheses.js --- # Input ```js (foo++)?.(); async () => { (await foo)?.(); } (+foo)?.(); +(+foo); class Foo extends (+Bar) {} class Foo extends (Bar ?? Baz) {} const foo = class extends (Bar ?? Baz) {} ;(1) ;(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); (b + c)``; const foo = { ...(a || b) }; async function *f() { await (a || b); yield (a && b); } const a = () => ({}?.() && a); (list || list2)?.[(list || list2)]; ``` ============================= # Outputs ## Output 1 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```js (foo++)?.(); async () => { (await foo)?.(); }; (+foo)?.(); +(+foo); class Foo extends (+Bar) {} class Foo extends (Bar ?? Baz) {} const foo = class extends (Bar ?? Baz) {}; 1; aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; (b + c)``; const foo = { ...(a || b) }; async function* f() { await (a || b); yield a && b; } const a = () => ({})?.() && a; (list || list2)?.[list || list2]; ``` # Lines exceeding max width of 80 characters ``` 11: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; ```