I added house-keeping scripts such as husky, lint-staged, prettier for easier contribution for me (db28871). But let me know if you need another issue and/or pull request for the change since it generates a bunch of diffs which is not directly related to #18.
I'm a bit wondering my additional test cases 7c8a518 are valid or comprehensive. Please review and give me your comment if any.
Closes #18.