We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cfab5a commit 8cba410Copy full SHA for 8cba410
common/git-hooks/pre-commit
@@ -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