Skip to content

Instantly share code, notes, and snippets.

@limarc
Last active May 13, 2017 21:44
Show Gist options
  • Select an option

  • Save limarc/47c6bce233b7f379bd01f4263e4c1a04 to your computer and use it in GitHub Desktop.

Select an option

Save limarc/47c6bce233b7f379bd01f4263e4c1a04 to your computer and use it in GitHub Desktop.
jscodshift transforms
require-default-codeshift.js
https://gist.github.com/nsfmc/aebef4e7a4944819ff40
transform-mobx-map.js
https://gist.github.com/bjrnt/bc5e3079a59924cde995963fcf0bf741
transform-sort-imports.js
https://gist.github.com/deoxxa/4d7aff457058adb44c8f643130bd3c00
rm-merge.js
https://gist.github.com/cpojer/f54da69dd042001e2320#file-rm-merge-js
ajax-success-error-to-then.js
https://gist.github.com/raejin/292eccdf683bf39d55569da940078881
remove-no-strict.js
https://gist.github.com/skratchdot/8a71a36fbc30bcaa8c6e4bba463f595c
createClass-to-function.js
https://gist.github.com/frnk94/808c85e634f44ae9ef009c0048a43357
less-aggressive-class.js
https://gist.github.com/dounan/ce151dedde9aa590447a80a0a9321060
flex-component.js
https://gist.github.com/dounan/dba4fef8ff63a4661a13e27f3e3dce32
combine-path-mapper.js
https://gist.github.com/albertojg/8a8772f779ed9c7b8d54b758f18041c5
Repositories
https://github.com/JamieMason/codemods
https://github.com/cpojer/js-codemod
https://github.com/reactjs/react-codemod
https://github.com/5to6/5to6-codemod
https://github.com/jhgg/js-transforms
https://github.com/kevinbarabash/codemods
> transform.sh
#!/usr/bin/env bash
for transform in node_modules/5to6-codemod/transforms/*.js; do
jscodeshift -t "$transform" $@
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment