Skip to content

Commit beacb8d

Browse files
authored
build: fix husky warnings (#30726)
1 parent 0998216 commit beacb8d

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

.husky/commit-msg

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
#!/bin/sh
2-
# commit-msg git hook, see https://typicode.github.io/husky/#/ for more on how husky works.
3-
. "$(dirname $0)/_/husky.sh"
4-
51
# Ahead of creating the commit, validate the commit message.
62
yarn -s ng-dev commit-message pre-commit-validate --file $1;

.husky/pre-commit

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
# Allow for the formatting command to fail without exiting the script.
52
set +e
63

74
yarn -s ng-dev format staged 2>/dev/null
85

96
if [ $? -ne 0 ]; then
107
echo "WARNING: failed to run file formatting (ng-dev format staged)"
11-
fi
8+
fi

.husky/prepare-commit-msg

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
#!/bin/sh
2-
# prepare-commit-msg git hook, see https://typicode.github.io/husky/#/ for more on how husky works.
3-
. "$(dirname $0)/_/husky.sh"
4-
51
# When a commit is started, restore the previous commit message draft if it exists.
62
yarn -s ng-dev commit-message restore-commit-message-draft $1 $2;

0 commit comments

Comments
 (0)