Skip to content

Instantly share code, notes, and snippets.

@tclancy
Created May 29, 2018 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tclancy/e39ad90a27e3b9cae1e9aa54628a3250 to your computer and use it in GitHub Desktop.
Save tclancy/e39ad90a27e3b9cae1e9aa54628a3250 to your computer and use it in GitHub Desktop.
Test Bash Script for Hook
#!/usr/bin/env bash
files=$(git diff --cached --name-only --staged --diff-filter=ACM WA-2310 | grep '\.jsx\?$')
echo ${files} | xargs eslint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment