coffee-to-es2015-codemod
coffee-to-es2015-codemod copied to clipboard
What is the preferred order of transforms
I noticed a TODO in the readme: TODO: define preferred order of transforms
. What do you see is the preferred order of the transforms?
Hi there! Sorry for not getting back to you sooner, but we actually moved forward with the conversion this week, so I had a lot on my mind :)
This is the order we ran the transforms in on our own codebase:
- implicit-var-declarator
- backbone-classes
- default-params
- fat-arrow
- index-of
- object-literal
- JSX (https://github.com/reactjs/react-codemod/blob/master/transforms/create-element-to-jsx.js)
If you are interested in running these transforms yourself please let me know. There's a lot of documentation missing, and I guess that it would be easier for you if would know a bit more about the codebase that you're thinking of converting (as you might see we didn't run all transforms on our own codebase yet, because some turned out to be problematic).