-
Notifications
You must be signed in to change notification settings - Fork 482
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
insertAfter adds empty line before #185
Comments
Thanks for reporting this! jscodeshift doesn't do any of the printing, recast does. Please file an issue or PR there. |
@fkling Thx. I've been doing it already. |
For anyone else that comes across this, the accompanying |
Also for anyone looking for a fix for running codemods: run this script afterwards to remove the empty lines: https://gist.github.com/jackaldridge/68b39a8e1de71384b8caaeb78ee10cda |
@JackAldridge Excellent, thanks 🙌 |
#185 (comment) Works like a charm |
benjamn/recast#371 has been closed without a resolution for 2 years. It isn't clear to me that there is an actionable next step for jscodeshift here, so we should probably close this issue. |
insertAfter
adds new line before inserted ast.I created second import by jscodeshift so in js it looks like
But should be:
The text was updated successfully, but these errors were encountered: