buster-jshint

Buster-extension: jshint your files as part of test run.

buster-jshint

Simplified version of buster-lint extension for buster.js to make linting with jshint your JavaScript part of the test run, without extra stuff like watcher, plus gives you extra control on jshint options.

Does not bundle jshint, relies on npm dependency.

Get it from npm:

npm install buster-jshint

Then add it to your buster.js config file:

config["My tests"] = {
  extensions: [ require("buster-jshint") ]
};

You'll probably want to change some options. All examples here show the default values, so while they are rather meaningless as actual configuration, they are illustrative.

To avoid linting dependencies or other nasty legacy bits, you can match the filename either by string or regexp.

config["My tests"] = {
  extensions: [ require("buster-jshint") ],
  "buster-jshint": {
    excludes: [ "jquery", "raphael" ] // default is [ ]
  }
};

For jshint:

config["My tests"] = {
  extensions: [ require("buster-jshint") ],
  "buster-jshint": {
    options: {
      // jshint options
    }
  }
};