jQuery Lint is a simple script you can download and use with jQuery. It works over the top of jQuery and diligently reports errors and any incorrect usage of jQuery. It will also, to some extent, offer guidance on best practices and performance concerns.

jQuery lint’s main objective is to notify you of incorrect usages of jQuery’s API. So, if you pass incorrect arguments to any method then jQuery Lint will let you know. It compares your arguments to the argument signatures in jQuery’s API.

How to Use

To use it, you need to include it, after jQuery, in your document:

<script src="jquery.js"></script>
<script src="jquery.lint.js"></script>

Features Include:

  • - Reports via Firebug, although you can quite easily plug-in your own console mechanism.
  • - Has four different error-reporting levels, zero reports nothing, three will report everything, including small things like using css().css().css() instead of css({…}).
  • - Helps you in determining where the problem occurred in your code.

You can read more about jQuery Lint and download it at Github.