Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parenthesizes around arrow function body returning object #830

Closed

Conversation

zxbodya
Copy link
Contributor

@zxbodya zxbodya commented Dec 16, 2020

fixes #743, fixes #744

I caught the same issue when having codemod changing function type annotations

it looks to be caused by
69e1227#diff-f2dc028279be53ae3c8d23750deff945df0bf5cafd17fe66d0a10d0b7421e93fR344-R345

which for me looks a bit suspicious, and when reverting - does not look to break any existing tests

adopted the test from #744

@conartist6
Copy link
Contributor

I'm the one who broke this, and I actually my own PR open now which would resolve your issue and others: #1068

@gnprice
Copy link
Contributor

gnprice commented May 25, 2022

The issue appears to have been fixed now by #1068, so I believe this PR can be closed.

@zxbodya zxbodya deleted the fix-arrow-function-with-object-body branch May 25, 2022 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brocken parenthesizes around arrow function body when return an object
5 participants