--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: 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 Indent width: 2 Line ending: LF Line width: 80 Quote style: Double Quotes JSX quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always Arrow parentheses: Always Bracket spacing: true Bracket same line: false Attribute Position: Auto ----- ```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; ```