Created
January 21, 2016 19:59
-
-
Save adamweeks/4a1f30d3f953122d38b6 to your computer and use it in GitHub Desktop.
NPM Script to eslint against staged changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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