Skip to content

Instantly share code, notes, and snippets.

@adamweeks
Created January 21, 2016 19:59
Show Gist options
  • Save adamweeks/4a1f30d3f953122d38b6 to your computer and use it in GitHub Desktop.
Save adamweeks/4a1f30d3f953122d38b6 to your computer and use it in GitHub Desktop.
NPM Script to eslint against staged changes
"scripts": {
"eslint": "eslint -c .eslintrc $(git diff --staged --diff-filter=ACMTUXB --name-only -- '*.js'); exit 0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment