-
Notifications
You must be signed in to change notification settings - Fork 226
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
explicit-any plugin fails to parse arrow function with implicit return of a literal object #113
Comments
Downgrading to |
@edsrzf From my investigation I think this is related to the latest dependencies update you did, somehow it broke the logic we have for diagnostic.code=7006. Could you please have a look? |
Yep, will do. Thanks for all the detail. |
It looks like this was introduced when we upgraded jscodeshift in #106. Trying to figure out the appropriate fix... |
Upstream issue is here: benjamn/recast#743 (recast is a jscodeshift dependency) Two PRs claiming to fix it, unreviewed and unmerged: |
Command:
yarn ts-migrate-full ./test-project --plugin explicit-any
Input:
Output:
The surrounding parenthesis are being removed.
The text was updated successfully, but these errors were encountered: