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

前端 未结 8 1685
温柔的废话
温柔的废话 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条回答
  •  时光取名叫无心
    2020-11-29 19:43

    late to the party, but use this option in your jshintrc:

    "dojo": true
    

    and thou shall rest peacefully without red warnings...

提交回复
热议问题