Repo: Git hooks should run Prettier only on changed files in commits #5203
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
repo maintenance
things to do with maintenance of the repo, and not with code/docs
Suggestion
Right now the
pre-push
hook in husky runs Prettier on everything, which takes many seconds:The repository already has a
pre-commit
hook for formatting. It should be impossible for users to add poorly formatting code unless they manually--no-verify
. Is there a reason to keeppre-push
in addition topre-commit
?Related: #445, #556, #5060
The text was updated successfully, but these errors were encountered: