difference between globals and predef in .jshintrc?

前端 未结 2 797
轻奢々
轻奢々 2021-01-07 17:41

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 f

2条回答
  •  粉色の甜心
    2021-01-07 18:17

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

    More information here

提交回复
热议问题