You may be more interested in the command line interface, jslint.
The category of error.
The line number of the error.
The character on the line where the error occurs.
Descriptive text of the error.
A copy of the line of code that produced the error.
You can optionally pass in a second parameter to influence how JSLint works. The following keys are used. All take a boolean value, and each one is false by default.
Predefine the standard browser global variables.
Allow upper case HTML.
Allow debugger statements.
Allow use of eval.
Allow JScript deviations.
Don't check line breaks.
Stop on the first error.
Disallow post-increment expressions.
Report on variables that are undefined when they are first used.
http://jslint.com/ for the original version that this is based upon.
jslint for the command line interface.
Dominic Mitchell, <cpan (at) happygiraffe.net>
Copyright (C) 2006 by Dominic Mitchell
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
JSLint is originally Copyright (C) 2002 Douglas Crockford.