From a4b8bba3e0d8748a5795e7f64dd1daac224605bc Mon Sep 17 00:00:00 2001
From: squidfunk <scifish@gmail.com>
Date: Thu, 12 Jan 2017 20:20:56 +0100
Subject: [PATCH] Prevent pre-commit hook from triggering on JSON

---
 .githooks/pre-commit/lint.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.githooks/pre-commit/lint.sh b/.githooks/pre-commit/lint.sh
index f4440b14f..eeb5688b7 100755
--- a/.githooks/pre-commit/lint.sh
+++ b/.githooks/pre-commit/lint.sh
@@ -41,7 +41,8 @@ git diff > "$PATCH_FILE"
 git checkout -- .
 
 # Filter relevant files for linting
-FILES=$(git diff --cached --name-only --diff-filter=ACMR | grep "\.js\|scss$")
+FILES=$(git diff --cached --name-only --diff-filter=ACMR | \
+  grep "\.\(js\|jsx\|scss\)$")
 
 # Run the check and print indicator
 if [ "$FILES" ]; then