A JSLint TextMate Bundle
Another JSLint Bundle for TextMate.
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.
Example Session:
Allows jslinting saved files with Crockford's JSLint.
Activate by using CTRL+ALT+C
.jslintrc
-support
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.
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.
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 */
This bundle uses a fork of jslint.
Note: infixin
is a custom setting disabling the 'in' operator checks.
Uses Jquery and Jquery-ui
Uses Silk Icon Set 1.3
Uses qtip
The bundle uses rspec and guard for development. The required gems can be installed by bundler with the supplied Gemfile.
Copyright (c) ART+COM AG, Berlin Germany 2012 - Author: Andreas Marr (andreas.marr@artcom.de)