[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.

![Javascript Tools Tooltip](http://www.simpltry.com/wp-content/uploads/2007/02/javascript_tools_tooltip.png)

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.

![Javascript Tools Validate js Output](http://www.simpltry.com/wp-content/uploads/2007/02/javascript_tools_validate_js_output.png)

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.

Post Information

Tags:

  • No Tags

We're Reading

Feeds/Syndication

2 Responses to “TextMate Javascript Tools Bundle”

Leave a Reply