Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

陈杨文 wenerme

🎯
Focusing
Block or report user

Report or block wenerme

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wenerme
wenerme / pre-commit-eslint
Last active Jan 24, 2019 — forked from linhmtran168/pre-commit-eslint
Pre-commit hook to check for Javascript using ESLint
View pre-commit-eslint
#!/bin/sh
# List files
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
# Try find node
You can’t perform that action at this time.