Reputation: 3840
WebStorm is showing the following error message:
JSHint: 'let' is available in ES6 (use 'esversion': 6) ...
In the Preferences -> Languages & Framework -> JavaScript menu I've selected the ECMAScript 6
option and my .jshintrc
file does contain the "esversion": 6,
line.
I've tried the two most recent versions of the app (which are now 2016.3.6 and 2017.1.2) but to no avail.
I've also deleted the files in ~/Library/Application Support/WebStormXX
and
~/Library/Preferences/WebStormXX
but nothing seems to have changed.
I'm using OS X 10.10.5.
Upvotes: 9
Views: 6440
Reputation: 7664
If you don't have your own config file, you can enable EcmaScript.next
in Relaxing options
in in
Settings | Languages & Frameworks | JavaScript | Code Quality Tools | JSHint
See this question How-do-I-resolve-these-JSHint-ES6-errors
Upvotes: 3
Reputation: 3840
Thanks to @lena's comment I was able to figure out what was wrong. The Use config file
checkbox of the Preferences | Languages & Frameworks | JavaScript | Code Quality Tools | JSHint
was not checked so my .jshintrc
was just being ignored.
Upvotes: 10