Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Failed to load latest commit information.
demo refactored code, exposed sendRequest, updated README
qunit @ 780a7a9 Upgrade jsHint to v2 and qUnit to latest version
test Fix test
.gitmodules Update jshint to 1.0, remove jshint submodule
LICENSE.html Add license. Closes #3. Fix image link
qhint.js Merge pull request #7 from JeffreyFalgout/fix-deprecated-practice

qHint - Integrating jsHint into qUnit

This small script lets you integrate jsHint coding style validation into your qUnit unit tests. For more information, see the blog post Enforcing coding conventions with jsHint and qUnit

JsHint in a QUnit suite


  1. Include the qhint.js file after qUnit and before calling it.

  2. Call the jsHintTest function like this:

    jsHintTest(*file* [, *options*, [*globals*]]);

    Optionally, you can name the test:

    jsHintTest(*name*, *file* [, *options*, [*globals*]]);

    You can also use the qHint() alias of the same function, depending on your preferences.

Something went wrong with that request. Please try again.