Coder Social home page Coder Social logo

mb2o / jquery-lint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from padolsey-archive/jquery.lint--old

0.0 2.0 0.0 186 KB

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.

Home Page: http://james.padolsey.com/javascript/jquery-lint/

jquery-lint's Introduction

jQuery Lint

Tested in jQuery 1.3.2 and 1.4


UPDATE (21-06-2010) - The code-base has been refactored, and some of the API has been deprecated -- this should only affect those of you who have extended jQuery Lint. Please download the new version as it does include bug fixes and various other improvements.


IMPORTANT - If you encounter a bug, please raise an issue. Likely bugs could include:

  • Reporting correct argument lists as incorrect.
  • Nested errors as a result of other oversights - e.g. you call css() incorrectly which might internally make a call to another method, which may then raise an error.

##Intro

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). You can easily define another reporting mechanism within the script itself, but there's little reason to; the errors it reports are browser-agnostic, so you may as well do your testing in Firefox w/ Firebug.

###Screenshot

jquery.lint.js preview

Read more about jQuery Lint in the wiki!

###License

* Dual licensed under the MIT and GPL licenses.
*    - http://www.opensource.org/licenses/mit-license.php
*    - http://www.gnu.org/copyleft/gpl.html

jquery-lint's People

Contributors

padolsey avatar zoranzaric avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.