Sublime Forum

jQuery linting plugin?

#1

Hey!

Is there a jQuery linting plugin that highlights errors in your code?

0 Likes

#2

jQuery is just javascript.

I would use SublimeLinter.

0 Likes

#3

If you are using Windows, try sharplinter, my command-line wrapper for jslint: 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).

0 Likes