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

fix(rome_js_formatter): properly retain parentheses in body #4716

Merged
merged 1 commit into from
Jul 20, 2023
Merged

fix(rome_js_formatter): properly retain parentheses in body #4716

merged 1 commit into from
Jul 20, 2023

Conversation

SuperchupuDev
Copy link
Contributor

Summary

The arrow_parentheses option currently removes parentheses to the body that would otherwise be added to avoid confusion. Since this is probably not expected to anyone using the option (considering prettier doesn't remove them), this PR reverts this behavior

Test Plan

cargo t

@netlify
Copy link

netlify bot commented Jul 20, 2023

Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit a8d9156
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/64b91e7a9ca2f300080f4782

@github-actions github-actions bot added the A-Formatter Area: formatter label Jul 20, 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.

Weird that there isn't any test that regressed. Happy to merge!

@ematipico ematipico merged commit 4ca5598 into rome:main Jul 20, 2023
18 checks passed
@denbezrukov
Copy link
Contributor

Could we add a test case? 🤞

@SuperchupuDev SuperchupuDev deleted the fix/confusing-parentheses branch July 20, 2023 14:02
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.

None yet

3 participants