This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## PRECOMMIT LINTING | |
# list staged files | |
STAGED_FILES_TS="$(git diff --cached --name-only | grep "\.ts$")" | |
STAGED_FILES_SCSS="$(git diff --cached --name-only | grep "\.scss$")" | |
STAGED_FILES_VUE="$(git diff --cached --name-only | grep "\.vue$")" | |
# Define helper variables | |
PASS_LINT=true | |
PASS_STAGING_COMPARATION=true |