javascript - Ember 构建中的 JSHint 错误

标签 javascript ember.js jshint broccolijs

我正在将 Ember 应用程序从版本 2.4.3 升级到 2.9.1。应用程序构建成功,但我得到以下 JSHint 错误的 42 个版本的列表;每个都以不同的文件名开头

unit/services/tracker-test.js: line 0, col 0, Incompatible values for the 'esversion' and 'esnext' linting options. (0% scanned).

我的.jshintrc文件包含

...
"esnext": true,
"esversion": 6,
...

什么导致错误?

最佳答案

根据这个jshint docs , esnext 已弃用:

Warning This option has been deprecated and will be removed in the next major release of JSHint. Use esversion: 6 instead.

同时设置"esnext": true选项和"esversion": 6选项是没有意义的。

关于javascript - Ember 构建中的 JSHint 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40357983/

相关文章:

javascript - 如何使用 JS fetch API 上传文件?

javascript - EmberJS : Has no method lastObject, 下一个对象

javascript - eslint 中的 jscs `disallowKeywordsOnNewLine` 相当于什么?

javascript - JSHint:为什么这个局部变量的值从未被读取过?

javascript - 无法使用 pdfkit.js 加载日语字体 Err : Not a supported font format or standard PDF font

javascript - JQuery 过滤器标签值

ember.js - 如何将模板中的 "action"传递给它在 Ember Octane 中的子组件

javascript - gulpjs 添加回以前忽略的路径?

javascript - 按数组中最后一项排序

javascript - 我如何通过 Ember 中的脚本标签提供第三方 js 库?