Clean and format your code before committing with Husky 🐶

Unsplash: Cody Board
  • pre-commit
  • commit-msg
  • post-commit
  • post-merge
  • pre-push
  • And more

Setup

yarn add -D husky
package.json

Usage

git commit -m "Trigger pre-commit hook 🤓"

--

--

--

Node.js & React Native Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

D3 Step-by-step Guide — (Part 4 of 4) Singapore HDB Resale Price on Planning Map — GitHub Pages

Coding — Just Coding?

JavaScript Weekly: Using a Structured Problem-Solving Approach

To the GOP, she undoubtedly looked good on paper.

OS in Rust: Running our custom kernel on an emulator: Part-5

This image has an empty alt attribute; its file name is os.jpeg

TryHackMe | Volatility

Stripe Payments

Build and monitor your FastAPI microservice with Docker, Prometheus and Grafana. [Part-2]

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nicolas Dommanget-Muller

Nicolas Dommanget-Muller

Node.js & React Native Developer

More from Medium

Code refactoring

Developers & Fixer Uppers

PostgreSQL and typeorm — 9 Tips, tricks and common issues

You don’t need to pull before rebase to an origin branch.