This is for those using Emotion CSS
- Install jscodeshift
jscodeshift -t codemod__emotion_styled.js DIRECTORY_TO_RECURSIVELY_MOD
Limitations: only works for styled
calls that have exactly one argument.
Thanks to Andrew Levine for their great intro to codemods here: https://medium.com/@andrew_levine/writing-your-very-first-codemod-with-jscodeshift-7a24c4ede31b