Created
August 11, 2017 14:01
-
-
Save richrout/1b39057c2d8989419a881c0f724b8703 to your computer and use it in GitHub Desktop.
Git pre-commit hook to run tslint on modified files only
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
#!/bin/sh | |
git diff --cached --name-only | egrep ".*\.tsx?" | xargs -r tslint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment