How to prevent '... is not defined' warning


I’m using the ember-cli-chart library. I’m able to set global configurations like this:

setGlobalChartConfig: Ember.on('init', function() { = false;

But ofcourse this will render this message:

controllers/application.js: line 6, col 5, 'Chart' is not defined.

What’s the best way to prevent this message from showing?

'Promise' is not defined

Try to add Chart as predef in your .jshintrc.

"predef": [


That’s it! Thank you.