Git Gutter vs JSHint
When comparing Git Gutter vs JSHint, the Slant community recommends Git Gutter for most people. In the question“What are the best plugins for Sublime Text?” Git Gutter is ranked 7th while JSHint is ranked 35th.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Makes it really easy to see if a line has been inserted, modified or deleted.
Pro Has hot keys for jumping to the next changed line in the file
Git Gutter exposes the commands git_gutter_next_change
and git_gutter_prev_change
for navigating to parts of the file that are different from git. By default they're bound to ctrl+shift+alt+j
and ctrl+shift+alt+k
respectively, but you can change them in your user key bindings file.
Pro Customizable ruleset
Since it's creation, JSHint was created to be a more configurable version of JSLint (it's actually a fork of JSLint itself). Every rule is configurable through a configuration file.
Pro Comes with support for many librariers
JSHint supports libraries like QUnit, NodeJS, jQuery, Mocha out of the box.
Pro Basic ES6 support
Basic ES6 support is included.
Cons
Con Directory locking causes issues when changing branches
If you have Sublime Text 3 open when switching branches directories are not removed if they are specific to a branch. This can create a real mess as the directory is treated as a new addition to the destination branch. Deleting the directory is still seen as a directory added then removed in the branch.
Con No way to support ESnext
There's no support for ESnext available.
Con Difficult to know which rule is causing an error
Because it does not display the rule name that is being broken, it's difficult to know which rule is actually causing the error.