Skip to content
Snippets Groups Projects
Commit a4b8bba3 authored by squidfunk's avatar squidfunk
Browse files

Prevent pre-commit hook from triggering on JSON

parent e5831239
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,8 @@ git diff > "$PATCH_FILE" ...@@ -41,7 +41,8 @@ git diff > "$PATCH_FILE"
git checkout -- . git checkout -- .
# Filter relevant files for linting # 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 # Run the check and print indicator
if [ "$FILES" ]; then if [ "$FILES" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment