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

  • 2016.07.26.21.31.12
  • github.​com
  • github.​com
  • 11 months ago
  • 19 minutes ago
  • 6 years ago

Installs

  • Total 203K
  • Win 98K
  • OS X 71K
  • Linux 34K
Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 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
Windows 36 89 71 94 85 53 31 78 68 71 85 73 37 52 68 72 73 78 66 48 58 71 76 89 82 68 39 58 81 79 63 64 65 53 68 76 97 75 77 78 49 40 88 77 98 65
OS X 8 27 35 24 20 9 12 24 39 39 38 30 12 9 17 27 33 32 26 17 21 37 35 32 32 19 14 20 27 44 37 31 28 19 10 36 34 36 31 28 13 28 31 40 42 32
Linux 3 14 16 25 16 7 11 29 21 28 21 24 13 13 18 25 23 27 18 24 9 20 24 21 23 14 11 11 26 19 17 19 17 14 10 19 13 32 20 21 6 14 18 22 23 19

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. The path to jshint is hardcoded in this plugin as /usr/local/share/npm/bin:/usr/local/bin:/opt/local/bin. There is no reliable way to get the path from your environment.

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