This is a TextMate 2 JSHint and JSCS plugin using the installed version of JSHint and JSCS.
Requirements:
Installation:
- Clone the repository
git clone git://github.com/bodnaristvan/JavascriptHinter.tmbundle.git
. - Go to the directory
cd JavascriptHinter.tmbundle
. - Run
make
- Run
open .
in the same directory to install the bundle - If you run into problems with node not found while running the plugin, check out this comment: bodnaristvan/JSHint.tmbundle#1 (comment)
- Make sure you have
jshint
andjscs
installed and available for the user:npm install -g jshint jscs
The bundle will use the default installed jshint and jscs executables, and the existing configuration in the project or in home directory.
The bundle is bound to the ^l
key by default in javascript mode, so make sure you disable previous bundles that were using this combo (like Jshint.tmbundle for example)
By default, Textmate2 shows any bundle output in a popup window, but also supports a sidebar as shown in the screenshot above.
To switch to using sidebar..
defaults write com.macromates.TextMate.preview htmlOutputPlacement right
Or switch back to window
defaults write com.macromates.TextMate.preview htmlOutputPlacement window