--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/arrows/currying-2.js --- # Input ```js const a = (x) => (y) => (z) => x / 0.123456789 + (y * calculateSomething(z)) / Math.PI; request.get('https://preview-9992--prettier.netlify.app', head => body => { console.log(head, body); }); request.get('https://preview-9992--prettier.netlify.app', head => body => mody => { console.log(head, body); }); request.get('https://preview-9992--prettier.netlify.app', head => body => modyLoremIpsumDolorAbstractProviderFactoryServiceModule => { console.log(head, body); }); ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -5,18 +5,14 @@ console.log(head, body); }); -request.get( - "https://preview-9992--prettier.netlify.app", - (head) => (body) => (mody) => { +request.get("https://preview-9992--prettier.netlify.app", (head) => + (body) => + (mody) => { console.log(head, body); - }, -); + }); -request.get( - "https://preview-9992--prettier.netlify.app", - (head) => - (body) => - (modyLoremIpsumDolorAbstractProviderFactoryServiceModule) => { - console.log(head, body); - }, -); +request.get("https://preview-9992--prettier.netlify.app", (head) => + (body) => + (modyLoremIpsumDolorAbstractProviderFactoryServiceModule) => { + console.log(head, body); + }); ``` # Output ```js const a = (x) => (y) => (z) => x / 0.123456789 + (y * calculateSomething(z)) / Math.PI; request.get("https://preview-9992--prettier.netlify.app", (head) => (body) => { console.log(head, body); }); request.get("https://preview-9992--prettier.netlify.app", (head) => (body) => (mody) => { console.log(head, body); }); request.get("https://preview-9992--prettier.netlify.app", (head) => (body) => (modyLoremIpsumDolorAbstractProviderFactoryServiceModule) => { console.log(head, body); }); ```