[英]jshint ignore:line with Eclipse issue
When applying jshint ignore:line
comment to suppress JSHInt Expected '===' and instead saw '=='
for a line 当应用
jshint ignore:line
注释抑制JSHInt Expected '===' and instead saw '=='
代表一行
} else if (argv[2]=='install'){ // jshint ignore:line
I got error sign on the left ruler (instead of warning) 我在左标尺上出现错误标志(而不是警告)
Multiple markers at this line
- Bad option: 'ignore'
- Expected '===' and instead
saw '=='
- ES5 option is now set per
default
That is applying the config makes it even worse. 那就是应用配置使情况变得更糟。
jshint ignore:line
config is taken from JSHint Documentation http://www.jshint.com/docs/ jshint ignore:line
配置来自JSHint文档http://www.jshint.com/docs/
JSHint Integration v0.9.9 comes with JSHInt 2.1.10 , see https://github.com/eclipsesource/jshint-eclipse JSHint集成v0.9.9随JSHInt 2.1.10一起提供,请参阅https://github.com/eclipsesource/jshint-eclipse
Is this JSHint bug or this option was not implemented in 2.1.10 ? 是JSHint错误还是此选项未在2.1.10中实现? JSHint Integration bug?
JSHint集成错误?
Of course I can configure "eqeqeq" : false
in .jshintrc
inside project, but my intention is to only disable it for 1 line. 当然,我可以配置
"eqeqeq" : false
的.jshintrc
内的项目,但我的本意是只禁用1线。
Thanks to @Qantas for pointing out. 感谢@Qantas指出。
jshint ignore:line
is introduced since 2.2.0 jshint ignore:line
从2.2.0版本开始引入 jshint ignore:line
JSHint now allows you to ignore parts of the file or specific line using the special /*jshint ignore */ directive.
现在,JSHint允许您使用特殊的/ * jshint ignore * /指令来忽略文件的某些部分或特定行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.