Skip to content
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
demo
qunit @ 780a7a9
test Fix test Jul 11, 2014
.gitmodules
LICENSE.html
README.md
jshint-2.1.9.js
qhint.js

README.md

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

Usage

  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.