You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// I have a parentnewNode.parent&&((// Or I did but its different than the one I have now.!originalNode.parent||newNode.parent.key!==originalNode.parent.key))
outputs
// I have a parentnewNode.parent&&((// Or I did but its different than the one I have now.(!originalNode.parent||newNode.parent.key!==originalNode.parent.key)))
All the printing is done by recast. You should file an issue there.
Though for jscodeshift specifically, you can simply return nothing from the transformer. That tells the runner/worker that the file is not supposed to change (and of course it won't be overridden since there was no return value).
Parsing and reprinting
outputs
which is inconvenient for codemods. Live test: http://felix-kling.de/esprima_ast_explorer/#/NvtYJQH95L.
The text was updated successfully, but these errors were encountered: