Uploaded July 2023 | Updated November 2026, 3 days ago
Three things you do NOT want in your main repository: unformatted code, warnings/errors and failing tests.
Is there an easy way to prevent these from happening? Sure, just don't forget to check your code before pushing.
Or... use a tool which does that for you: husky!
Docs: typicode.github.io/husky
_______________________________
Hit like and subscribe for more content! :D
Join the Discord community! Here's the invite: discord.gg/bqwyEa6We6
You can also follow me on the other platforms:
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
GitHub: github.com/Balastrong
Instagram: instagram.com/devbalastrong
_______________________________
TIMESTAMPS
00:00 Demo
00:49 Setup
02:08 pre-commit - Format & Lint
03:52 pre-push - Run tests
04:27 Bypass husky
05:32 Learn more
_______________________________
Sound effects from zapsplat.com
#git #hook #nodejs
Three things you do NOT want in your main repository: unformatted code, warnings/errors and failing tests.
Is there an easy way to prevent these from happening? Sure, just don't forget to check your code before pushing.
Or... use a tool which does that for you: husky!
Docs: typicode.github.io/husky
_______________________________
Hit like and subscribe for more content! :D
Join the Discord community! Here's the invite: discord.gg/bqwyEa6We6
You can also follow me on the other platforms:
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
GitHub: github.com/Balastrong
Instagram: instagram.com/devbalastrong
_______________________________
TIMESTAMPS
00:00 Demo
00:49 Setup
02:08 pre-commit - Format & Lint
03:52 pre-push - Run tests
04:27 Bypass husky
05:32 Learn more
_______________________________
Sound effects from zapsplat.com
#git #hook #nodejs










