Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pianosnake/af8b04f9db7987f55832ca2394b74ae0 to your computer and use it in GitHub Desktop.
Save pianosnake/af8b04f9db7987f55832ca2394b74ae0 to your computer and use it in GitHub Desktop.
Find out who wrote the bad JavaScript!! Use `git blame` on each line output by ESLINT
eslint "**/**.js" -f unix | perl -n -l -e '/(.*\.js):(\d*):/ && print "$1 $2"' | xargs -n 2 sh -c 'git blame $0 -L$1,$1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment