diff --git a/.husky/_/commit-msg b/.husky/_/commit-msg index 6d75457..16aae78 100755 --- a/.husky/_/commit-msg +++ b/.husky/_/commit-msg @@ -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" \ No newline at end of file diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh index 472dabe..f9d0637 100644 --- a/.husky/_/husky.sh +++ b/.husky/_/husky.sh @@ -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 \ No newline at end of file +They WILL FAIL in v10.0.0 +" \ No newline at end of file diff --git a/.husky/_/pre-commit b/.husky/_/pre-commit index 77c876a..16aae78 100755 --- a/.husky/_/pre-commit +++ b/.husky/_/pre-commit @@ -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" \ No newline at end of file diff --git a/favs.html b/favs.html index b5e2c05..b4778eb 100644 --- a/favs.html +++ b/favs.html @@ -142,7 +142,7 @@