--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: 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 Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```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"; } ```