Skip to content

Instantly share code, notes, and snippets.


陈杨文 wenerme

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 / 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
# List files
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
# Try find node
You can’t perform that action at this time.