DEV Community

Cover image for Using Git hooks for easier development
Christian Lüdemann
Christian Lüdemann

Posted on

Using Git hooks for easier development

Do you have a set of routines you do before you commit and publish code? These routines could be linting, formatting, testing and building the code. Imagine if there was a way to automate all of this for your whole team? The solution is to use Git hooks.

In this post, we will go through my recommended way to use Git hooks, using lint-staged, TSLint and Prettier. We will also answer the question: “What should run as Git hooks vs. on the CI?”.

Read the post here:
https://christianlydemann.com/using-git-hooks-for-easier-development/

Top comments (0)