aragon / radspec

🤘 Radspec is a safe interpreter for Ethereum's NatSpec
MIT License
141 stars 36 forks source link

Use ES6 import and export syntax #61

Closed sembrestels closed 5 years ago

sembrestels commented 5 years ago

Fixes #46.

sembrestels commented 5 years ago

@sohkai I just amended my commit to follow standard style rules and replaced a last require I forget the first time.

sembrestels commented 5 years ago

Rebased on top of master.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.3%) to 90.652% when pulling c0fa71e64162aa6d4d76eb202f37574e8d404b8f on P2PModels:imports into ba73502ad634a00f0fa34f0671a1b35092515512 on aragon:master.

sohkai commented 5 years ago

Thanks for doing this @sembrestels, this was really nice!

I've just added a commit to keep the wallaby.js as CJS, since I'm not sure if Wallaby supports loading config files through ES6 and another to fix a test and clean up the import/export declarations a bit :).

sembrestels commented 5 years ago

Awesome! Thanks!