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 238K
  • Win 121K
  • OS X 78K
  • Linux 39K
Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7
Windows 19 18 23 29 31 37 18 23 19 24 30 30 27 23 14 18 14 20 15 24 21 15 11 21 16 28 28 32 23 16 25 23 23 37 37 9 12 20 27 40 29 41 21 22 30 19
OS X 4 2 5 5 4 6 6 3 4 13 9 9 4 5 5 2 8 7 7 9 12 4 3 10 6 10 14 8 3 3 8 11 8 12 11 3 8 3 3 11 13 15 14 5 7 10
Linux 1 3 2 7 3 4 5 2 3 4 4 8 4 2 6 4 4 9 8 3 10 5 6 5 7 7 5 8 5 4 9 10 5 9 12 0 3 6 4 4 18 8 4 5 9 4

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