Pregunta

When applying jshint ignore:line comment to suppress JSHInt Expected '===' and instead saw '==' for a line

} 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 Integration v0.9.9 comes with JSHInt 2.1.10 , see https://github.com/eclipsesource/jshint-eclipse

Is this JSHint bug or this option was not implemented in 2.1.10 ? JSHint Integration bug?

Of course I can configure "eqeqeq" : false in .jshintrc inside project, but my intention is to only disable it for 1 line.

¿Fue útil?

Solución

Thanks to @Qantas for pointing out.

jshint ignore:line is introduced since 2.2.0

JSHint now allows you to ignore parts of the file or specific line using the special /*jshint ignore */ directive.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top