-
Notifications
You must be signed in to change notification settings - Fork 38
Home
FunctionVoid edited this page Sep 29, 2011
·
4 revisions
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.
Include it, after jQuery like this:
<script src="jquery.js"></script> <script src="jquery.lint.js"></script>
Now, just use jQuery as you normally would. When you do something that jQuery Lint deems incorrect or a bad practice then you’ll receive a warning in the console. Currently, it only works with Firebug (in Firefox), Chrome and Safari. You can easily define another reporting mechanism within the script itself, but there’s little reason to; the errors it reports are browser-agnostic.
* Dual licensed under the MIT and GPL licenses. * - http://www.opensource.org/licenses/mit-license.php * - http://www.gnu.org/copyleft/gpl.html