JSHint
JSHint any JavaScript file in Sublime Text 2
Details
Installs
- Total 273K
- Win 144K
- Mac 84K
- Linux 45K
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 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 1 | 2 | 1 | 3 | 1 | 5 | 6 | 1 | 1 | 2 | 1 | 2 | 2 | 0 | 2 | 1 | 1 | 2 | 1 | 2 | 2 | 1 | 3 | 1 | 1 | 4 | 4 | 2 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 | 0 | 2 | 2 | 2 | 3 | 3 | 1 | 4 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 2 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 1 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 3 | 1 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 2 | 1 | 0 | 3 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
JSHint for Sublime Text
The best JavaScript syntax checker: JSHint for the best text editor: Sublime Text
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
orcontrol
-shift
-p
in Linux/Windows- type
install p
, selectPackage Control: Install Package
- type
jshint
, selectJSHint
Note: Without Sublime Package Control, you could manually clone to Packages directory as 'JSHint', exactly.
3. JSHint an active JavaScript file
control
-j
oralt
-j
in Linux/Windows or Tools/Contextual menus or the Command PaletteF4
jump to next error row/columnshift
-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