unittest_jshint is a tool that integrates JSHint with Python's unittest module. This package was inspired by gocept.jslint.
To use it, create a test class like this::
include = (
options = ( 'curly', 'eqeqeq', )
include is a list of "resource paths" of the form packagename:path (passed to pkg_resources).
exclude can be a list of filenames (without path) that will not be collected.
options is a list of arguments that are passed to JSHint (see its documentation for details). The default value is::
options = ()
All files ending in .js contained in each of these paths will be collected, and the test class will grow a method named test_< filename >.js.
You can ignore JSHint error by setting ignore on the test class (a list of substrings that are matched against each JHLint output line):
ignore = (
"Use a named parameter",