Open ghost opened 7 years ago
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 recast
issue can be found here:
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 🙌
https://github.com/facebook/jscodeshift/issues/185#issuecomment-497482753 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: