|
|
|
|
|
by roma1n
2585 days ago
|
|
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? |
|
Here's an example with Prettier:
https://coolaj86.com/articles/server-side-git-hooks-for-code...