Configure Husky in VS Code for JavaScript Development
by installing ESLint and Prettier we have the option to run the script which will check for syntax and best practices in our JavaScript code. But what about if we forget to execute this script before committing our changes to the GitHub repository? We will be then committing poorly written code into our repo. We can always run ESLing and Prettier as part of our continuous integration, but having a problem identified at that stage is kind of late in the game. We need to fix now and do another commit.
So it will be good if we can identify these problems even before we do the first commit. And here comes the power of Husky.
Read More