How do you enforce the use of a formatter in a project -- pre-commit hook? pre-receive hook? both? And is there a convention to put a specific dotfile at the project root to hint at your IDE/editor that it should use a certain tool for automatic formatting?
I recommend the server-side `update` hook (much like `pre-receive`, but a little easier to use and more flexible).
Here's an example with Prettier:
https://coolaj86.com/articles/server-side-git-hooks-for-code...