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
  • 11 months ago
  • 1 hour ago
  • 7 years ago

Installs

  • Total 236K
  • Win 119K
  • OS X 78K
  • Linux 39K
Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6
Windows 1 11 25 33 37 28 26 10 0 0 22 27 15 27 20 14 23 28 22 17 17 11 20 17 16 22 19 20 19 18 22 34 26 23 25 17 22 25 25 28 22 35 17 21 26 38
OS X 0 6 14 11 7 10 14 4 0 0 12 8 10 12 4 3 7 7 11 4 3 6 5 5 6 10 10 6 6 4 13 14 7 6 4 5 5 13 9 5 4 9 5 6 6 6
Linux 0 8 4 6 4 8 3 3 0 1 4 4 6 2 3 1 3 8 5 3 2 2 6 9 6 5 2 6 1 6 8 7 12 7 9 3 4 6 5 8 12 8 4 8 7 11

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