This file contains hidden or 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 | |
# avoid pre-commit hooks when fixing conflicts/merging | |
git rev-parse -q --verify MERGE_HEAD && exit 0 | |
# list all staged JS and TS files | |
js_ts_files=$(git diff --diff-filter=d --name-only --cached | grep -E '\.(js|jsx|ts|tsx)$') | |
############# |
OlderNewer