From 083d518e9e53686db376ccf32198e4d5ac439e43 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Wed, 11 Oct 2023 04:36:23 -0700 Subject: [PATCH] enh: relaxed linting requirements --- .husky/pre-commit | 6 +++++- .husky/pre-push | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 .husky/pre-push diff --git a/.husky/pre-commit b/.husky/pre-commit index 6cdaab7b..035ccfb0 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,8 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn lint +branch="$(git rev-parse --abbrev-ref HEAD)" +if [ "$branch" = "master" ]; then + yarn lint +fi + diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 00000000..6cdaab7b --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +yarn lint