[英]Where can I set the ES6 option for jshint?
我试过了:
/*jshint esversion: 6 */
但是在运行grunt时遇到错误:
由于esnext
已被弃用, esnext
这应该是首选方法。 请参阅此处 - http://jshint.com/docs/options/#esnext
您可以在gruntfile.js中设置'esversion'选项,如下所示:
jshint: {
files: ['dist/*.js'],
options: {
'esversion': 6,
}
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.