To show errors in the gutter of Sublime Text 3, do the following:
- Make sure that Nodejs is installed.
- Install jshint via Nodejs:
npm install -g jshint
(or “sudo npm install -g jshint” if that doesn’t work)
- Install the Sublime Package Manager (in case you haven’t done this before, because Sublime is quite useless without it).
- Install “SublimeLinter” via the Sublime Package Manager.
- Install the Sublimelinter JSHint plugin via the Sublime Package Manager. Sublimelinter reads the .jshintrc settings of your project and falls back to the default settings of the plugin. The plugin settings can be overridden.
- Install the Sublimelinter JSON plugin via the Sublime Package Manager.
Sublimelinter shows JavaScript errors in the gutter of Sublime Text. If you have some kind of error please refer to the troubleshooting documentation.