--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/arrow/params.js --- # Input ```js fooooooooooooooooooooooooooooooooooooooooooooooooooo(action => next => dispatch(action), ); foo( ({ a, b }) => {} ); foo( ({ a, b }) => {} ); foo( ({ a, b }) => {} ); foo( a, ({ a, b }) => {} ) foo( ({ a, b }) => a ); foo( ({ a, b }) => a ); foo( ({ a, b }) => a ); foo( ({ a: { a, b } }) => {} ); foo( ({ a: { b: { c, d } } }) => {} ); foo( ({ a: { b: { c: { d, e } } } }) => {} ); foo( ({ a: { a, b } }) => a ); foo( ({ a: { b: { c, d } } }) => a ); foo( ({ a: { b: { c: { d, e } } } }) => a ); foo( ([ { a: { b: { c: { d, e } } } } ]) => {} ); foo( ([ ...{ a: { b: { c: { d, e } } } } ]) => {} ); foo( ( n = { a: { b: { c: { d, e } } } } ) => {} ); foo( ({ x: [ { a, b } ] }) => {} ); foo( ( a = [ { a, b } ] ) => a ); foo( ([ [ { a, b } ] ]) => {} ); foo( ([ [ [ [ { a, b: { c, d: { e, f } } } ] ] ] ]) => {} ); foo( ( ...{ a, b } ) => {} ); foo( ( ...[ { a, b } ] ) => {} ); foo( ([ ...[ { a, b } ] ]) => {} ); foo( ( a = [{ a, b }] ) => {} ); foo( ( a = (({ a, b }) => {})() ) => {} ); foo( ( a = f({ a, b }) ) => {} ); foo( ( a = ({ a, b }) => {} ) => {} ); foo( ( a = 1 + f({ a, b }) ) => {} ); export default (element) => async (Component, props, slotted, { client }) => { delete props['class']; if (!element.hasAttribute('ssr')) return; }; ``` ============================= # 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 fooooooooooooooooooooooooooooooooooooooooooooooooooo( (action) => (next) => dispatch(action), ); foo( ({ a, b, }) => {}, ); foo(({ a, b }) => {}); foo(({ a, b }) => {}); foo( a, ({ a, b, }) => {}, ); foo( ({ a, b, }) => a, ); foo(({ a, b }) => a); foo(({ a, b }) => a); foo( ({ a: { a, b, }, }) => {}, ); foo( ({ a: { b: { c, d, }, }, }) => {}, ); foo( ({ a: { b: { c: { d, e, }, }, }, }) => {}, ); foo( ({ a: { a, b, }, }) => a, ); foo( ({ a: { b: { c, d, }, }, }) => a, ); foo( ({ a: { b: { c: { d, e, }, }, }, }) => a, ); foo( ([ { a: { b: { c: { d, e, }, }, }, }, ]) => {}, ); foo( ([ ...{ a: { b: { c: { d, e, }, }, }, } ]) => {}, ); foo( ( n = { a: { b: { c: { d, e, }, }, }, }, ) => {}, ); foo( ({ x: [ { a, b, }, ], }) => {}, ); foo( ( a = [ { a, b, }, ], ) => a, ); foo( ([ [ { a, b, }, ], ]) => {}, ); foo( ([ [ [ [ { a, b: { c, d: { e, f, }, }, }, ], ], ], ]) => {}, ); foo( ( ...{ a, b, } ) => {}, ); foo( ( ...[ { a, b, }, ] ) => {}, ); foo( ([ ...[ { a, b, }, ] ]) => {}, ); foo( ( a = [ { a, b, }, ], ) => {}, ); foo( ( a = (({ a, b, }) => {})(), ) => {}, ); foo( ( a = f({ a, b, }), ) => {}, ); foo( ( a = ({ a, b, }) => {}, ) => {}, ); foo( ( a = 1 + f({ a, b, }), ) => {}, ); export default (element) => async (Component, props, slotted, { client }) => { delete props["class"]; if (!element.hasAttribute("ssr")) return; }; ``` ## Output 2 ----- 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: As needed Bracket spacing: true Bracket same line: false Attribute Position: Auto ----- ```js fooooooooooooooooooooooooooooooooooooooooooooooooooo( action => next => dispatch(action), ); foo( ({ a, b, }) => {}, ); foo(({ a, b }) => {}); foo(({ a, b }) => {}); foo( a, ({ a, b, }) => {}, ); foo( ({ a, b, }) => a, ); foo(({ a, b }) => a); foo(({ a, b }) => a); foo( ({ a: { a, b, }, }) => {}, ); foo( ({ a: { b: { c, d, }, }, }) => {}, ); foo( ({ a: { b: { c: { d, e, }, }, }, }) => {}, ); foo( ({ a: { a, b, }, }) => a, ); foo( ({ a: { b: { c, d, }, }, }) => a, ); foo( ({ a: { b: { c: { d, e, }, }, }, }) => a, ); foo( ([ { a: { b: { c: { d, e, }, }, }, }, ]) => {}, ); foo( ([ ...{ a: { b: { c: { d, e, }, }, }, } ]) => {}, ); foo( ( n = { a: { b: { c: { d, e, }, }, }, }, ) => {}, ); foo( ({ x: [ { a, b, }, ], }) => {}, ); foo( ( a = [ { a, b, }, ], ) => a, ); foo( ([ [ { a, b, }, ], ]) => {}, ); foo( ([ [ [ [ { a, b: { c, d: { e, f, }, }, }, ], ], ], ]) => {}, ); foo( ( ...{ a, b, } ) => {}, ); foo( ( ...[ { a, b, }, ] ) => {}, ); foo( ([ ...[ { a, b, }, ] ]) => {}, ); foo( ( a = [ { a, b, }, ], ) => {}, ); foo( ( a = (({ a, b, }) => {})(), ) => {}, ); foo( ( a = f({ a, b, }), ) => {}, ); foo( ( a = ({ a, b, }) => {}, ) => {}, ); foo( ( a = 1 + f({ a, b, }), ) => {}, ); export default element => async (Component, props, slotted, { client }) => { delete props["class"]; if (!element.hasAttribute("ssr")) return; }; ```