Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
#!/bin/sh
# commit-msg git hook, see https://typicode.github.io/husky/#/ for more on how husky works.
. "$(dirname $0)/_/husky.sh"

# Ahead of creating the commit, validate the commit message.
yarn -s ng-dev commit-message pre-commit-validate --file $1;
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Allow for the formatting command to fail without exiting the script.
set +e

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

if [ $? -ne 0 ]; then
echo "WARNING: failed to run file formatting (ng-dev format staged)"
fi
fi
4 changes: 0 additions & 4 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
#!/bin/sh
# prepare-commit-msg git hook, see https://typicode.github.io/husky/#/ for more on how husky works.
. "$(dirname $0)/_/husky.sh"

# When a commit is started, restore the previous commit message draft if it exists.
yarn -s ng-dev commit-message restore-commit-message-draft $1 $2;
Loading