Skip to content

Instantly share code, notes, and snippets.

@namnm
Last active September 15, 2022 09:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save namnm/f1b827e557e50d6fd7cd076c6cb01513 to your computer and use it in GitHub Desktop.
Save namnm/f1b827e557e50d6fd7cd076c6cb01513 to your computer and use it in GitHub Desktop.
Run eslint on changed files only
git status -u --porcelain | egrep -h '^[^D]{2}.*\.js$' | cut -c 4- | xargs eslint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment