From c24562061beba5a164ef94589b3dba9fd5ddcef3 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sat, 18 Feb 2023 10:14:24 +0100 Subject: [PATCH] chore: do not run pre-commit hook on CI --- .husky/pre-commit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index 45a45ee2..1f7344d3 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,6 @@ #!/bin/sh +[ -n "$CI" ] && exit 0 + . "$(dirname "$0")/_/husky.sh" yarn lint-staged