From 3b63342bb9e3d35ef4ce80be6f4336076cc499ff Mon Sep 17 00:00:00 2001 From: Arthur Date: Fri, 9 Sep 2022 15:17:59 -0700 Subject: [PATCH] #10310 run yarn pre-commit only if static files changed --- scripts/git-hooks/pre-commit | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/git-hooks/pre-commit b/scripts/git-hooks/pre-commit index dd3645eda..2ccf8df89 100755 --- a/scripts/git-hooks/pre-commit +++ b/scripts/git-hooks/pre-commit @@ -40,7 +40,6 @@ if [ $? != 0 ]; then EXIT=1 fi -echo "Checking UI ESLint, TypeScript, and Prettier compliance..." git diff --cached --name-only | if grep --quiet 'netbox/project-static/' then echo "Checking UI ESLint, TypeScript, and Prettier compliance..."