JSHint - Use Strict Global Problem Follow
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."
Please sign in to leave a comment.
Use /*global PRIDE:true */
Similar bug report: https://github.com/jshint/jshint/issues/427 .
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.