-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: UI Improvements and Updates (#78)
- Loading branch information
1 parent
8474cd5
commit 1525028
Showing
8 changed files
with
151 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/husky.sh" | ||
|
||
# Validate commit message | ||
npx --no-install commitlint --edit "$1" | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,9 @@ | ||
#!/bin/sh | ||
if [ -z "$husky_skip_init" ]; then | ||
debug () { | ||
[ "$HUSKY_DEBUG" = "1" ] && echo "husky:debug $1" | ||
} | ||
echo "husky - DEPRECATED | ||
readonly hook_name="$(basename "$0")" | ||
debug "starting $hook_name..." | ||
Please remove the following two lines from $0: | ||
if [ "$HUSKY" = "0" ]; then | ||
debug "HUSKY env variable is set to 0, skipping hook" | ||
exit 0 | ||
fi | ||
#!/usr/bin/env sh | ||
. \"\$(dirname -- \"\$0\")/_/husky.sh\" | ||
if [ -f ~/.huskyrc ]; then | ||
debug "sourcing ~/.huskyrc" | ||
. ~/.huskyrc | ||
fi | ||
|
||
export readonly husky_skip_init=1 | ||
sh -e "$0" "$@" | ||
exitCode="$?" | ||
|
||
if [ $exitCode != 0 ]; then | ||
debug "hook failed" | ||
else | ||
debug "hook succeeded" | ||
fi | ||
|
||
exit $exitCode | ||
fi | ||
They WILL FAIL in v10.0.0 | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,2 @@ | ||
#!/bin/sh | ||
# Ensure the script fails on the first error (except when running prettier) | ||
set -e | ||
|
||
# Run Prettier to format code | ||
echo "Running Prettier..." | ||
npx prettier --write . | ||
|
||
# Capture the Prettier exit code | ||
PRETTIER_EXIT_CODE=$? | ||
|
||
# Run ESLint to lint code | ||
echo "Running ESLint..." | ||
npx eslint . | ||
|
||
# Capture the ESLint exit code | ||
ESLINT_EXIT_CODE=$? | ||
|
||
# If Prettier or ESLint failed, exit with an error | ||
if [ "$PRETTIER_EXIT_CODE" -ne 0 ]; then | ||
echo "Prettier formatting failed" | ||
fi | ||
|
||
if [ "$ESLINT_EXIT_CODE" -ne 0 ]; then | ||
echo "ESLint failed" | ||
exit 1 # Ensure pre-commit fails on lint issues | ||
fi | ||
|
||
# If both succeeded or ESLint failed, allow commit to proceed | ||
exit 0 | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.