Samagra-Development / Doc-Generator

Create PDFs from a variety of formats.
17 stars 45 forks source link

Add pre-commit hook to run tests and format code #131

Closed yuvrajsab closed 1 year ago

yuvrajsab commented 1 year ago

We need to add a pre-commit hook to run the tests before anyone does git commit and if the tests pass then only it will create a commit otherwise it will throw an error.

We recommend looking into this package Husky to achieve this. It will also be beneficial if we add a second hook to run yarn format to format our code for maintaining code consistency.

VarunGitGood commented 1 year ago

can i work on this?

AnshulMalik commented 1 year ago

This already has a PR @varun7singh

VarunGitGood commented 1 year ago

Sure