esperantojs / esperanto

DEPRECATED: An easier way to convert ES6 modules to AMD and CommonJS
http://esperantojs.org
234 stars 21 forks source link

Code base consistency #135

Closed Rich-Harris closed 9 years ago

Rich-Harris commented 9 years ago

Will likely add a few commits to this before merging.

This is an attempt to make the coding style a bit more consistent and ES6-ish, and (probably) do a little light refactoring to make things a little less confusing. ES6 style-wise, I've come to prefer a few conventions:

The codebase hasn't seen much aggressive refactoring, so there are probably a number of opportunities to make things a bit easier to follow and more explicit (e.g. fewer functions that mutate objects as a side effect, that sort of thing). @eventualbuddha would be interested to hear any thoughts you have along the way.

eventualbuddha commented 9 years ago

Seems great :+1: