Home Download Buy Blog Forum Support

jQuery linting plugin?

jQuery linting plugin?

Postby Lukk on Fri Mar 30, 2012 9:13 pm


Is there a jQuery linting plugin that highlights errors in your code?
Posts: 12
Joined: Sun Mar 18, 2012 1:41 pm

Re: jQuery linting plugin?

Postby facelessuser on Fri Mar 30, 2012 9:37 pm

jQuery is just javascript.

I would use SublimeLinter.
Posts: 1781
Joined: Tue Apr 05, 2011 7:38 pm

Re: jQuery linting plugin?

Postby jamietre on Sat Mar 31, 2012 9:08 pm

If you are using Windows, try sharplinter, my command-line wrapper for jslint: https://github.com/jamietre/SharpLinter

Using it with sublime text 2 is just a matter of creating a build config as you would for any command line tool:

"cmd": ["sharplinter", "-ph","best","*.min.js", "$file"],
"file_regex": "^(.*?)\\(([0-9]+)\\): ()(.*)$",
"selector": "source.js"

Might be a bit easier than SublimeLinter because it doesn't require you to install a node server to use it. All it's dependencies are included in the download, nothing required but to drop the files into some location on your path (or call it directly).
Posts: 4
Joined: Tue Mar 13, 2012 1:03 pm

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 34 guests