unexpectedjs / unexpected-markdown

Unexpected flavored markdown
MIT License
2 stars 1 forks source link

Modernise #46

Closed alexjeffburke closed 4 years ago

alexjeffburke commented 4 years ago

This PR replaces callback use throughout the library with async/await. In addition, where appropriate other newer features such as object spread and Object.assign() are used to remove a few additional libraries and helpers.

sunesimonsen commented 4 years ago

@alexjeffburke did you consider using https://github.com/lebab/lebab to modernise trivial things like var to const and using arrow functions.

alexjeffburke commented 4 years ago

@sunesimonsen yeah :) only reason I was holding off was to avoid the PR ballooning so I thought it'd be a follow-up - but happy to proceed if that isn't a concern.

sunesimonsen commented 4 years ago

👍