[英]“Use the function form of ”use strict" when using Gulp + Babel + JsHint
我收到此警告:
"Use the function form of "use strict"
当gulp观看我的js文件时。
如何解决呢? 我正在使用gulp,gulp-babel和gulp-jshint。
代码示例:
.pipe( babel() )
.pipe( jshint( ".jshintrc" ) )
我不是在我的代码上写'use strict'
。 它是由babel生成的。
要重申Bergi在评论中所说的话,您不应该删除未编写的代码。 使用babel 之前,您应该切换顺序并运行jshint。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.