diff options
| author | Teddy Wing | 2015-09-27 13:20:55 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-09-27 13:20:55 -0400 |
| commit | 2a88fb92f4c1fbb3533e589d5c9f4b5c17595d3f (patch) | |
| tree | c8b4ae5f5e20ae0a2e543d98662bc3bf90997488 /t/uncommitted.js | |
| parent | 50631f85e73eda9d6738f5993ff5cf26198f8697 (diff) | |
| download | git-hook-pre-commit-python-javascript-syntax-linter-2a88fb92f4c1fbb3533e589d5c9f4b5c17595d3f.tar.bz2 | |
Add JavaScript linting and tests
* Add sample malformed JavaScript files to lint on
* In our tests, copy the `node_modules` directory to make `jshint`
available, then validate that we're correctly linting the staged JS
file
* In our pre-commit hook, lint the staged JavaScript files. If either of
our linting commands fail then exit 1 to abort the commit.
Diffstat (limited to 't/uncommitted.js')
| -rw-r--r-- | t/uncommitted.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/uncommitted.js b/t/uncommitted.js new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/t/uncommitted.js @@ -0,0 +1 @@ +test |
