Force build failure on any JShint Error

I modified my ember-cli-build.js in the following way to make use of the new option:

var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var jsHint = require('broccoli-jshint'); jsHint.prototype.failOnAnyError = true;

I admit it feels ugly to have to touch the prototype and am grateful for better suggestions.

EDIT: I just realized this is still gonna pose a problem for environment===‘production’, since jsHint seems to be completely switched off for that environment :confused:

1 Like