[#4] Pre-Commit and Pre-Push Hooks Complete Guide in Hindi and Urdu

Опубликовано: 01 Март 2026
на канале: Code with Shoaib
4,686
75

Build Project in React with Hooks in 2020
   • Mastering React Hooks Fundamentals in 2022  

How to npm run all
https://stackoverflow.com/questions/3...

EsLint Jest Plugin
https://github.com/jest-community/esl...

How to Support ESModule in Jest
https://stackoverflow.com/questions/3...

Source Code
https://github.com/shoaibcode/code-qu...

Subscribe to this channel
   / @shoaibbhimani  

Learn Javascript from Scratch | Hindi / Urdu:    • Complete Javascript from Beginner to Exper...  

Visit: http://shoaibbhimani.com

How to keep clean in large project? how to make consistent code quality across project ? these are very important to question to ask one of solution is to add pre commit and pre push hooks it is essentially gives you ability to run script before commit and pushing any changes.

In pre commit hook we can leverage lint stage package to make sure to commit script only those files that are change not whole project in our example are testing our changed file do not have Linting and type issues.

In Pre push hooks we can check our entire project do not have eslint errors, and types issues are being corrected and test case that are running is executed properly



Want to Improve your Javascript Skills check out this book
https://amzn.to/2WiCPpv

The tool I used to Record
============

Microphones I use
1. https://amzn.to/2Qoz4ex
2. http://amzn.to/2wdqhzE

Mic Filter which good for remote noise while recording
https://amzn.to/2vWs952

Mic Stand
http://amzn.to/2fIJ5Rn

Webcam I use
https://amzn.to/2JAo61L

Follow Me on
Udemy: https://www.udemy.com/user/shoaib-bhi...
Twitter:   / shoaibbhimani  
Github: https://github.com/shoaibbhimani

About Me:
I am a Software Engineer from Mumbai (India). I Create High-Quality video tutorials on cutting edge technology like React, Redux, Mobx, JQuery, React Router, Ecmascript, Javascript, and other latest technologies