OurTechCommunity / catchup

The OTC CatchUp web app and workflows.
https://catchup.ourtech.community
MIT License
15 stars 9 forks source link

Add an optional Prettier pre-commit hook. #126

Open HarshKapadia2 opened 1 year ago

HarshKapadia2 commented 1 year ago

If possible, we can add code for a generalised pre-commit hook in CONTRIBUTING.md to run Prettier before committing locally.

Credits: @KartikSoneji

KartikSoneji commented 1 year ago

I'll try to add it as an npm script, so you can run npm run enable-lint or npm run disable-lint and it will enable or disable the pre-commit hooks.

tusharnankani commented 1 year ago

I'll try to add it as an npm script, so you can run npm run enable-lint or npm run disable-lint and it will enable or disable the pre-commit hooks.

Yes, makes sense!