我正在将 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/