Closed gmathieu closed 7 years ago
Anyone have any feedback on this?
👍🏼 On Thu, Apr 6, 2017 at 5:39 PM Guillaume Mathieu notifications@github.com wrote:
Anyone have any feedback on this?
— You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub https://github.com/5to6/5to6-codemod/pull/42#issuecomment-292378194, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPBf-GQFcv1KxJM_FNxh7tTWmKGdwW2ks5rtYWlgaJpZM4M15ST .
Sorry, the right thing to do would have been to create multiple PRs for this change but I figured I'd share the love since I just used this update to convert our entire codebase.
Enhanced cjs
Added support for renamed decomposition.
Before
After
Enhanced exports
Added export aggregation. Until now, the following conversion happened
module.export.foo = foo
->export const foo = foo
. This broke no-redeclare and no-user-before-define for our codebase.Before
After
Introduced
import-cleanup
scriptThis script was introduced to deal with no-duplicate-imports which eslint didn't care about enforcing for requires. In the future, this script could be enhanced to handle sorting.
Before
After