I have a big old project and I've just implemented jshint on it. At this point I have many, many warnings, which I am not able to fix immediately and it is really hard to find an error if there is one. So I've added this option, which helps you print only the errors, if you need to. The filtering is done only when errorsOnly is true, so there is no performance overhead in the standard case. In fact, I don't see any difference when I run it both ways. Note about the diff: I've preserved your tab-styled indentation, but the diff stil looks a little bit odd for me. The only things I've changed are: I've added the filtering block And everything else is executed if result.length > 0. Inside the IF block I did nothing else but indentation.
Repository: sindresorhus/jshint-stylish. Description: Stylish reporter for JSHint Stars: 557, Forks: 46. Primary language: JavaScript. License: MIT. Open PRs: 0, open issues: 0. Last activity: 2y ago. Top contributors: sindresorhus, fiftyfactorauthentication, jasonkarns, rodneyrehm, jonschlinkert.