Skip to content

Instantly share code, notes, and snippets.

James Aduke jamesaduke

Block or report user

Report or block jamesaduke

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
@jamesaduke
jamesaduke / commit-msg
Created Mar 2, 2018 — forked from wesbos/commit-msg
ESLint 3.0 Git Pre Commit Hook
View commit-msg
#!/bin/bash
files=$(git diff --cached --name-only | grep '\.jsx\?$')
# Prevent ESLint help message if no files matched
if [[ $files = "" ]] ; then
exit 0
fi
failed=0
for file in ${files}; do
You can’t perform that action at this time.