--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/module/function/function.js --- # Input ```js function foo() { } async function foo(a) { await x } x = function() { } x = async function* foo(a) { } function Foo() { if (!new.target) { } } function* Foo() { yield yield x yield* x yield aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa yield* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa } function foo() { let [ref, setRef] = useState(); useEffect(() => { setRef() }); return ref; } function directives() { "use strict"; } ``` ============================= # 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 function foo() {} async function foo(a) { await x; } x = function () {}; x = async function* foo(a) {}; function Foo() { if (!new.target) { } } function* Foo() { yield; yield x; yield* x; yield aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; yield* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; } function foo() { let [ref, setRef] = useState(); useEffect(() => { setRef(); }); return ref; } function directives() { "use strict"; } ```