Skip to content

Instantly share code, notes, and snippets.

View benediktvaldez's full-sized avatar
🦸
hi!

Benedikt D Valdez benediktvaldez

🦸
hi!
View GitHub Profile
@benediktvaldez
benediktvaldez / humanJshintReporter.js
Last active September 10, 2015 17:15 — forked from qubyte/humanJshintReporter.js
The default JSHint output is somewhat wasteful, and very bland, making it hard for a human to parse. The following does IMO a better job and colours the output for you. This requires the `colors` package, available via npm. If you don't want the dependency, just remove the color commands from strings. MIT licence.
/**
* The default JSHint output is somewhat wasteful, and very bland, making it hard for a human to
* parse. The following does IMO a better job and colours the output for you. This requires the
* `colors` package, available via npm. If you don't want the dependency, just remove the color
* commands from strings.
*
* Usage: When invoking jshint from the command line, point it to this file with the --reporter
* flag. e.g.
*
* jshint someFile.js --config /path/to/config.cfg --reporter /path/to/jshintReporter.js