difference between globals and predef in .jshintrc?

codeboy picture codeboy · Mar 21, 2014 · Viewed 9.1k times · Source

What the difference and purpose of having both of them in the .jshintrc? When I want to add a variable to be ignored, which one is the best one I should use? Also I can't find 'predef' in http://www.jshint.com/docs/options/

Answer

rekarnar picture rekarnar · Apr 30, 2014

It seems like predef is deprecated and you should use globals instead.

More information here