How to disable the warning 'define' is not defined using JSHint and RequireJS

前端 未结 8 1701
温柔的废话
温柔的废话 2020-11-29 19:21

I uses RequireJS AMD in my project. When i run jshint on my project, it throws error like

In AMD Scripts

 \'define\' is not defined.
<
8条回答
  •  猫巷女王i
    2020-11-29 19:45

    To avoid the not defined warning in jshint for the javascript add comments like:

    /*global describe:true*/
    

    Options

提交回复
热议问题