How to tell JSLint / JSHint what global variables are already defined

后端 未结 3 936
醉酒成梦
醉酒成梦 2020-12-08 05:52

In my project we have some global variables that work as containers:

MyProject.MyFreature.someFunction = function() { ... }

So then I use t

3条回答
  •  甜味超标
    2020-12-08 06:31

    This is only for globals

    /* global MyProject */
    

    In your case you need

    /* exported MyProject */
    

提交回复
热议问题