I've been having some problems with SublimeLinter3. I recently installed JSHint and Sublime Linter 3 with my package control, and when I manually use JSHint from the command palette it works fine. However, my SublimeLinter isn't doing anything. Shouldn't it provide instant visual feedback when i type errors and save a file? Any help would be greatly appreciated!
Make sure that you installed the SublimeLinter-jshint
package, and not the one just named JSHint
, as it doesn't work with SublimeLinter. Also, make sure you've completely read through the SublimeLinter documentation so that everything is set up correctly.
Have you read the installation documentation ? You have to install jshint using Node.js
If you have done every steps, take a look at Tools > SublimeLinter > Lint Mode. "Background" should be selected if you want a syntax check as you are typing.
You can also try to make some errors and press CTRL+K and then A to show all errors. If you see errors that means jshint is correctly installed and working. If not you have a problem with your installation.
npm install -g jshint
was not working for me. The problem was fixed when i used sudo npm install -g jshint
. While I don't know why I had to do that, I'm just happy it ended up working. –
Gaspar © 2022 - 2024 — McMap. All rights reserved.
npm install -g jshint
was not working for me. The problem was fixed when i usedsudo npm install -g jshint
. While I don't know why I had to do that, I'm just happy it ended up working. – Gaspar