require
hook). That means you can use ES7 syntax in your transform files. If you already transpiled the transformer or don't use any ES6 features that need to be transpiled, you can pass the --no-babel
option.--extension
(defaults to js
)..remove
method which removes all selected nodes from the AST.--verbosity
options is renamed to --verbose
replaceWith
, insertAfter
and insertBefore
now accept arraysjscodeshift.template.*
functions to interpolate AST nodes. See f866c37e7ff7d1a324c2968e571b5ffb7928eb93 and tests.