Using Git hooks for easier development

twitter logo github logo ・1 min read

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/

twitter logo DISCUSS
Classic DEV Post from Feb 28

How a Monolith Architecture Can Be Transformed into Serverless

There is a growing audience surrounding serverless and many are keen to take ad...

Christian Lüdemann profile image
Software consultant who helps people creating better Angular apps through consulting and training.