jshint-eclipse icon indicating copy to clipboard operation
jshint-eclipse copied to clipboard

.jshintrc has no effect?

Open ok11 opened this issue 9 years ago • 1 comments

Hi all,

I'm trying to suppress the messages like "'let' is available in ES6...". I placed the following content in .jshintrc in the project root (near .project):

{
  "esversion": 6,
  "node": true
}

This is then visible in the project settings under JSHint->Configuration. Still, neither this, nor placing the same content in global preferences, does not switch off the warning. The only thing that helps, is adding the JSHint comment (/* jshint esversion: 6 */) in each and every file, which does not scale for a large project.

Am I missing something in my setup?

Thanks in advance.

ok11 avatar Dec 12 '16 10:12 ok11

After struggling with this myself, you have to turn on Project Configuration. Under the Project Properties, Select JSHint | Configuration, then tick "Enable project specific configuration".

jmannau avatar Jan 19 '17 00:01 jmannau