Skip to content

Commit 05d8f7f

Browse files
author
Rafael Miranda
committed
Release 2.14.9
1 parent f1baecb commit 05d8f7f

File tree

5 files changed

+32173
-32199
lines changed

5 files changed

+32173
-32199
lines changed

.husky/_/husky.sh

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,9 @@
1-
#!/bin/sh
2-
if [ -z "$husky_skip_init" ]; then
3-
debug () {
4-
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
5-
}
1+
echo "husky - DEPRECATED
62
7-
readonly hook_name="$(basename "$0")"
8-
debug "starting $hook_name..."
3+
Please remove the following two lines from $0:
94
10-
if [ "$HUSKY" = "0" ]; then
11-
debug "HUSKY env variable is set to 0, skipping hook"
12-
exit 0
13-
fi
5+
#!/usr/bin/env sh
6+
. \"\$(dirname -- \"\$0\")/_/husky.sh\"
147
15-
if [ -f ~/.huskyrc ]; then
16-
debug "sourcing ~/.huskyrc"
17-
. ~/.huskyrc
18-
fi
19-
20-
export readonly husky_skip_init=1
21-
sh -e "$0" "$@"
22-
exitCode="$?"
23-
24-
if [ $exitCode != 0 ]; then
25-
echo "husky - $hook_name hook exited with code $exitCode (error)"
26-
exit $exitCode
27-
fi
28-
29-
exit 0
30-
fi
8+
They WILL FAIL in v10.0.0
9+
"

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx lint-staged
1+
npx lint-staged

0 commit comments

Comments
 (0)