JSLint TextMate Bundle
There are many JSLint Bundles out there which may be prettier but they all lack functionality.
Most Bundles only report on errors on lines and thats it.
This bundle takes advantage of the full returned data by JSLint, incl. listed globals and more.
It also has
.jslintrc support which makes it compatible with the jslint.vim vim-plugin.
This is important for teams working on stuff.
Allows jslinting saved files with Crockford's JSLint.
Activate by using
Also generates reports on full data returned by JsLint
Install by cloning:
$ cd ~/Library/Application\ Support/TextMate/Bundles/ $ git clone git://github.com/artcom/jslint-tmbundle.git JSLINT.tmbundle $ osascript -e 'tell app "TextMate" to reload bundles'
or cloning somewhere else and symlinking it there.
TextMate & rvm
It is possible to create an environment for rvm in textmate by following the instructions on rvm homepage.
The TM_RUBY will then be used automatically by the bundle. Otherwise the system ruby will be used.
Syntax highlighting support
The gem coderay can be used (optionally) to highlight code.
This bundle supports using '~/.jslintrc'. Recommended Settings:
/*jslint infixin: true, nomen:true, sloppy: true, vars: true, white: true, forin: true, plusplus: true, continue: true, bitwise: true */
References & Attributions
This bundle uses a fork of jslint.
infixinis a custom setting disabling the 'in' operator checks.
Uses Jquery and Jquery-ui
Uses Silk Icon Set 1.3