Created
November 11, 2014 13:57
-
-
Save jeremija/65532dee6224dcee3a80 to your computer and use it in GitHub Desktop.
ST3 - JSHint package fix for wrong line numbers selected with F4 when TAB indentation is used
This file contains hidden or 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
| { | |
| "selector": "source.js", | |
| // only the following is added: "$packages/JSHint/jshintrc", "$file" | |
| // compared to: https://github.com/uipoet/sublime-jshint/blob/master/JSHint.sublime-build | |
| "cmd": ["jshint", "--config", "$packages/JSHint/jshintrc", "$file", "--reporter", "$packages/JSHint/reporter.js"], | |
| "file_regex": "JSHint: (.+)\\]", | |
| "line_regex": "(\\d+),(\\d+): (.*)$", | |
| "osx": { | |
| "path": "/usr/local/share/npm/bin:/usr/local/bin:/opt/local/bin" | |
| }, | |
| "windows": { | |
| "cmd": ["jshint.cmd", "$file", "--reporter", "$packages\\JSHint\\reporter.js"] | |
| } | |
| } |
This file contains hidden or 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
| { | |
| "indent": 1 | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually an easier solution is to just put the
jshintrcin the project root and rename it to.jshintrc.