Last active
August 29, 2015 13:56
-
-
Save iffy/9237287 to your computer and use it in GitHub Desktop.
jshint behaves differently for absolute paths and relative paths as far as ignoring goes
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
syntax error |
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
syntax error |
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
$ find . | |
. | |
./bar | |
./bar/foo.js | |
./bar/wow | |
./bar/wow/foo.js | |
./ignorefile |
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
**/foo* |
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
12:59:04 [matt] /tmp/foo $ ../node_modules/jshint/bin/jshint --exclude-path /tmp/foo/ignorefile . | |
12:59:15 [matt] /tmp/foo $ ../node_modules/jshint/bin/jshint --exclude-path /tmp/foo/ignorefile /tmp/foo | |
/tmp/foo/bar/foo.js: line 1, col 1, Expected an assignment or function call and instead saw an expression. | |
/tmp/foo/bar/foo.js: line 1, col 7, Missing semicolon. | |
/tmp/foo/bar/foo.js: line 1, col 8, Expected an assignment or function call and instead saw an expression. | |
/tmp/foo/bar/foo.js: line 1, col 13, Missing semicolon. | |
/tmp/foo/bar/wow/foo.js: line 1, col 1, Expected an assignment or function call and instead saw an expression. | |
/tmp/foo/bar/wow/foo.js: line 1, col 7, Missing semicolon. | |
/tmp/foo/bar/wow/foo.js: line 1, col 8, Expected an assignment or function call and instead saw an expression. | |
/tmp/foo/bar/wow/foo.js: line 1, col 13, Missing semicolon. | |
8 errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment