jshintify
Run jshint with your own jshintrc and show errors in status bar.
Details
Installs
- Total 12K
- Win 6K
- Mac 4K
- Linux 2K
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 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
yet another jshint plugin for sublime
How to install ?
OSX:
- install nodejs >= 0.8
brew install nodejs
- this will take a while - preferably add
/usr/local/share/npm/bin
to $PATH - install jshint
npm install jshint -g
install jshintify sublime package from git (or just use package control):
cd $PATH_OF_SUBLIME_PACKAGES (probably somethint like cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/) git clone git://github.com/afterdesign/jshintify.git
open preferences and check if the paths for node and jshint are correct
set the path to your jshint file
use
ctrl+super+j
to run manuallyuse
ctrl+shift+j
to show list of errors in current line
Windows:
- install nodejs >= 0.8
- install git
open
node.js command prompt
and install jshint:npm install jshint -g
open
git Bash prompt
and do something similar to (or just use package control):cd $PATH_OF_SUBLIME_PACKAGES (probably something like /c/Document\ And\ Settings/YOUR_USER/Application\ Data/Sublime\ Text\ 2/Packages/) git clone git://github.com/afterdesign/jshintify.git
check
jshint_path
cause it's set up tojshint.cmd
and it may require to find that file and set whole path like:C:\\Documents And Settings'\IEUser\\Application Data\\npm\\jshint.cmd
set the path to your jshint file
use
ctrl+super+j
to run manuallyuse
ctrl+shift+j
to show list of errors in current line
Linux:
- Install nodejs >= 0.8. Preferably with package manager.
- install jshint
npm install jshint -g
install jshintify sublime package ((or just use package control)):
cd $PATH_OF_SUBLIME_PACKAGES (probably somethint like cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/) git clone git://github.com/afterdesign/jshintify.git
open preferences and check if the paths for node and jshint are correct
set the path to your jshint file
use
ctrl+super+j
to run manuallyuse
ctrl+shift+j
to show list of errors in current line
Pure download version:
- Download nodejs >= 0.8 binary.
- Unpack
- Open terminal or whatever you need and go to
node-v0.10.12-linux-x64/bin
- install jshint
./npm install jshint -g
- Configure paths in sublime jshintify plugin.
Default settings:
run_on_load
- run jshint right after file is loaded do editorrun_on_save
- run jshint after file is savederror_messages_show_count
anderror_messages_show_first
error_messages_show_count : false
show message like:(error) : Expected 'for' to have an indentation at 13 instead at 9.
"error_messages_show_count" : true
show message like:ERRORS : 1 | (error) : Expected 'for' to have an indentation at 13 instead at 9.
show_dot
- show dot on panel with line numbershow_outline
- draw outline on line with errordebug
- use to get info to post in github issue
{
"debug" : false,
"run_on_load" : false,
"run_on_save" : true,
"error_messages_show_count" : true,
"error_messages_show_first" : true,
"extensions" : [".js"],
"jshintrc" : "",
"show_dot" : true,
"show_outline" : true,
"paths" : {
"osx" : {
"jshint_path" : "/usr/local/bin/jshint",
"node_path" : "/usr/local/bin/node"
},
"windows" : {
"jshint_path" : "jshint.cmd",
"node_path" : null
},
"linux" : {
"jshint_path" : "/usr/bin/jshint",
"node_path" : "/usr/bin/node"
}
}
}
Contact
You can follow me on twitter: @afterdesign or find me on coderwall: @afterdesign or find me on g+: +RafałMalinowski
License
Licensed under the MIT license.