ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

JSHint

by uipoet ST2/ST3 Top 100

JSHint any JavaScript file in Sublime Text 2

Details

  • 2018.02.11.05.59.59
  • github.​com
  • github.​com
  • 1 year ago
  • 2 hours ago
  • 7 years ago

Installs

  • Total 240K
  • Win 122K
  • OS X 79K
  • Linux 39K
May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8
Windows 1 15 13 19 13 7 21 12 23 21 17 12 14 18 22 24 26 30 14 14 20 19 8 26 19 20 12 24 22 22 18 19 16 11 11 20 28 25 19 24 23 22 24 29 24 25
OS X 1 10 4 7 5 1 2 5 10 7 4 1 2 5 6 11 6 3 10 1 8 4 4 7 3 5 2 3 5 2 6 4 3 2 3 7 7 7 10 2 0 7 5 8 11 4
Linux 0 10 2 0 3 2 7 2 4 7 3 9 2 5 4 5 1 6 5 0 6 5 6 4 3 7 2 5 5 4 5 7 0 4 4 2 3 4 3 5 6 5 7 4 5 5

Readme

Source
raw.​githubusercontent.​com

JSHint for Sublime Text

The best JavaScript syntax checker: JSHint for the best text editor: Sublime Text

ScreenShot

Prerequisites: jshint and Sublime Package Control

Mac OS X: Installing node with homebrew or macports is assumed. Use SublimeFixMacPath for setting the correct OS X path. Supports nvm - Node Version Manager

Linux: Make sure jshint is in your environment path.

Windows: Installing node with the Windows Installer from nodejs.org is assumed.

1. Terminal

npm install -g jshint

Note: JSHint will use the first .jshintrc file found traversing from the active file in Sublime Text up to your project's root.

2. Sublime Text Package Control

  • command-shift-p or control-shift-p in Linux/Windows
  • type install p, select Package Control: Install Package
  • type jshint, select JSHint

Note: Without Sublime Package Control, you could manually clone to Packages directory as 'JSHint', exactly.

3. JSHint an active JavaScript file

  • control-j or alt-j in Linux/Windows or Tools/Contextual menus or the Command Palette
  • F4 jump to next error row/column
  • shift-F4 jump to previous error row-column

Note: The control-j/alt-j shortcut changes the Build System on the current file to JSHint, then Builds to run JSHint on the file and output any errors for jumping to within the file. You could alternatively set the Build System to Automatic and command-b/control-b/F7, but only on files that end with .js.

JSHint on save

Install SublimeOnSaveBuild