bsoc-bitbyte / IIITians-Space

A forum to make connections and learn
2 stars 11 forks source link

set up .githooks to test on pre-commit #3

Open VarunGitGood opened 1 year ago

VarunGitGood commented 1 year ago

Here's an easy one

Set up a github hook to run tests namely npm run lint & npm run format:check

if they do fail stop the commit

use Husky for this to set it up do the manual installation Husky Docs

Pratik2026 commented 1 year ago

I would like to work on this issue . Please assign it to me

VarunGitGood commented 1 year ago

Sure @Pratik2026 let me know if you need anything!!

Pratik2026 commented 1 year ago

@varun7singh Do I have to pass the package.json file as well?

VarunGitGood commented 1 year ago

Yeah