[Thomas Aylott](http://subtlegradient.com/) committed a bundle that he adopted from [Andrew Dupont](http://andrewdupont.net/) to [BundleForge](http://bundleforge.com/) called Javascript Tools. I can’t tell you how much I am looking forward to using this bundle. It has a bunch of stuff in it, but the thing I am most excited about is [TextMate](http://macromates.com/) integration with [JS Lint](http://www.jslint.com/lint.html). I have only used it for about two minutes, and I can tell that it works exactly like a syntax checker should work.
When you save a file it gives you a little tool tip telling you how many errors and warnings you have.

At this point you can see I have warnings. This is my hint to push \[control]\[shift]\[v]. This shows me my warnings, it is important to get rid of all the warnings so that it works cross browser.

Hers is the code with the warnings:
var MyObject = {
myMethod: function(){
return
},
}
And here is the code after I removed all the validation warnings:
var MyObject = {
myMethod: function(){
return;
}
};
It works great, just don’t run it on [Prototype](http://www.prototypejs.org/)
Here is how I got it installed (you need subversion for this to work).
* Open a terminal
* cd ~/Library/Application Support/TextMate/Bundles
* svn co http://bundles.bundleforge.com/trunk/bundles/JavaScript%20Tools.tmbundle/
* Then go to TextMate and run Bundles > Bundle Editor > Reload Bundles
I have high hopes for the BundleForge project, if it works anything like [Allan Odgaard](http://macromates.com/blog/archives/2007/02/16/javascript-tools/) vision, TextMate will just get better and better. Like all great products, the user community is *almost* better than the product itself.
I’m just so happy that I found this bundle.
I really like that it bugs you every time you hit save.
If there was some way to run all of your Rails tests on save and give you a tooltip like that without involving time travel or faster-than-light quantum computers, life would be wonderful indeed.
Ok, wonderful-er
It was definitely a good find!
I am not in favor of breaking the space time continuum to get instant rails test results. I have seen enough movies to know that waiting for my tests is better that creating a worm hole.
Cheers, and thanks again.