Skip to content

Commit 8cba410

Browse files
committed
fix: restore accidentally deleted pre-commit hook
1 parent 0cfab5a commit 8cba410

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

common/git-hooks/pre-commit

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
# Called by "git commit" with no arguments. The hook should
3+
# exit with non-zero status after issuing an appropriate message if
4+
# it wants to stop the commit.
5+
6+
# Invoke the "rush prettier" custom command to reformat files whenever they
7+
# are committed. The command is defined in common/config/rush/command-line.json
8+
# and uses the "rush-prettier" autoinstaller.
9+
node common/scripts/install-run-rush.js prettier || exit $?

0 commit comments

Comments
 (0)