node.jsjshintgrunt-contrib-jshint

difference between globals and predef in .jshintrc?


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/


Solution

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

    More information here