eggheadio-github / stack-overflow-copy-paste

Utility functions copy/pasted (and modified slightly) from Stack Overflow
441 stars 606 forks source link

Using ES6 syntax to cleanup index.js #137

Closed huchenme closed 6 years ago

huchenme commented 6 years ago

index.js is a bit duplicated and unsorted. we can use ES6 syntax to clean up it a bit

from

import add from './add'
export {add}

to

export {default as add} from './add'
huchenme commented 6 years ago

I have created a PR for the proposal as well https://github.com/eggheadio-github/stack-overflow-copy-paste/pull/136

kentcdodds commented 6 years ago

Thanks @huchenme!