Skip to content

Instantly share code, notes, and snippets.

@xjamundx
Created May 4, 2013 03:59
Show Gist options
  • Save xjamundx/5516105 to your computer and use it in GitHub Desktop.
Save xjamundx/5516105 to your computer and use it in GitHub Desktop.
super simple example of how to do an async reporter for jshint (with my changes)
"use strict";
exports.reporter = function(errors, data, opts, cb) {
setTimeout(function() {
console.log(errors.length ? "FAILED" : "OK");
}, 50);
};
exports.reporter.async = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment