OurTechCommunity / catchup

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

Add a Prettier pre-commit hook. #20

Closed HarshKapadia2 closed 2 years ago

HarshKapadia2 commented 2 years ago
KMK-Git commented 2 years ago

Hi, this seems like a simple change, I will take this up since no one else is working on it.

I have one question though, which exact version of prettier should be added in dev dependencies? (https://prettier.io/docs/en/install.html#summary suggests using an exact version to avoid formatting differences) Should I just use the latest version available right now?

I also haven't ran prettier on the existing code, if there are any changes required will add another comment here.

KMK-Git commented 2 years ago

https://github.com/KMK-Git/catchup/commit/6b368cea52deb58d4291979bf771a29462c9d7d7

Formatting changes with prettier 2.7.1