Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_js_formatter): improve handling of arrow parentheses #4704

Merged
merged 2 commits into from
Jul 18, 2023
Merged

fix(rome_js_formatter): improve handling of arrow parentheses #4704

merged 2 commits into from
Jul 18, 2023

Conversation

SuperchupuDev
Copy link
Contributor

Summary

I missed a few cases in #4667 that lead to syntax errors in some arrow function parameters when arrow_parentheses is set to asNeeded
image

Test Plan

Added a new test file arrow_parentheses.ts

@netlify
Copy link

netlify bot commented Jul 18, 2023

Deploy Preview for docs-rometools ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit cd530e2
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/64b66bb5af40d100087159a9
😎 Deploy Preview https://deploy-preview-4704--docs-rometools.netlify.app/playground
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the A-Formatter Area: formatter label Jul 18, 2023
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Conaclos Conaclos merged commit 4c8cf32 into rome:main Jul 18, 2023
17 checks passed
@SuperchupuDev SuperchupuDev deleted the fix/arrow-parentheses-extended-syntax branch July 19, 2023 08:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants