[英]jshint turn off alert() error doesn't work
jshint: {
files: [
'src/js/*.js',
'Gruntfile.js'
],
options: {
jshintrc: '.jshintrc',
devel:true
}
},
How to turn off that alert error in jshint?如何关闭 jshint 中的警报错误? hell I want to turn off that stupid feature off!
地狱我想关闭那个愚蠢的功能! if possible "use strict" too, too annoying..
如果可能的话“使用严格”太烦人了..
There is a way, look here .有办法,看这里。
here is a little snippet for that:这是一个小片段:
// Code here will be linted with JSHint.
/* jshint ignore:start */
// Code here will be ignored by JSHint.
/* jshint ignore:end */
You can also ignore a single line with a trailing comment like this:您还可以忽略带有尾随注释的单行,如下所示:
ignoreThis(); // jshint ignore:line
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.