A Guide to setting up an npm library with TypeScript, Jest, Prettier, and Eslint — In this story, I will refactor one of my libraries (nric-validator). The scenario is that the code is written in JavaScript + Ava (unit test), and the structure is not good. So, I want to re-structure this npm library to archive these points: Able to write by TypeScript and export…