eclipsesource / jshint-eclipse

JSHint integration for the Eclipse IDE
http://github.eclipsesource.com/jshint-eclipse/
146 stars 31 forks source link

.jshintrc has no effect? #121

Open ok11 opened 7 years ago

ok11 commented 7 years ago

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.

jmannau commented 7 years ago

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".