Skip to content

Instantly share code, notes, and snippets.

@jeremija
Created November 11, 2014 13:57
Show Gist options
  • Select an option

  • Save jeremija/65532dee6224dcee3a80 to your computer and use it in GitHub Desktop.

Select an option

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
{
"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"]
}
}
{
"indent": 1
}
@jeremija
Copy link
Copy Markdown
Author

Actually an easier solution is to just put the jshintrc in the project root and rename it to .jshintrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment