【问题标题】:Error jshint validation es5错误 jshint 验证 es5
【发布时间】:2015-04-04 21:06:59
【问题描述】:

通过终端验证 jshint 时抛出错误,我有空的 js 文件仍然抛出错误。

f.js: line 0, col 0, ES5 option is now set per defaul
1 error

【问题讨论】:

    标签: javascript macos terminal jshint


    【解决方案1】:

    在你的主目录中创建 .jshintrc 文件并将 es5 设置为 FALSE。

    {
       "es5"           : false,     // true: Allow ES5 syntax (ex: getters and setters)
    }
    

    【讨论】:

      猜你喜欢
      • 2011-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-03
      • 2016-02-25
      • 2013-09-07
      • 2019-01-29
      相关资源
      最近更新 更多