jacobcoughenour / odin

2 stars 0 forks source link

Setup pre-commit hooks to enforce code style #36

Open jacobcoughenour opened 3 years ago

jacobcoughenour commented 3 years ago

https://prettier.io/docs/en/precommit.html

This will run prettier on all the staged files before they are committed.

We might want to lint as well or we could do that in a GitHub action instead as part of testing. It just depends on how "clean" we want to keep the main branch.