JSHint - Use Strict Global Problem

We have a global object called PRIDE that is defined in common.js as:

if(!PRIDE) var PRIDE = {};

However, because it's global and we are using JSHint and Use Strict, I have to add ito the Global in PHPStorm settings. Now, when I get an error message about PRIDE being "redefined."

2 comments
Comment actions Permalink

Use /*global PRIDE:true */
Similar bug report: https://github.com/jshint/jshint/issues/427 .

0
Comment actions Permalink

This thing is so darn buggy. One time I add a global variable it works, then when I mess with other stuff and take those changes out, now that same global variable doesn't work.

0

Please sign in to leave a comment.