Category: github, automation

Even if you set up tools that guarantees some code quality, it is possible that you can forget to execute them before pushing your code. To automate and solve this problem, Husky + Lint-Staged packages help you prevent submitting code that does not follow some predefined rules (i.e: unit tests validation, code convention validation, code formatting, etc).

So, if you don’t have it, please go to NodeJS website, download and install it on your local machine.

Hmm, so we just need to add it to our Husky Configuration file and for these situations the commit will be sent with all the code fixed, right?

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox.Explore

Related Articles