ES6 in JShint - .jshintrc has esversion, but still getting warning (using atom)

Ron I picture Ron I · May 16, 2016 · Viewed 58k times · Source

I am using atom, and I've tried several different jshint packages and they all give a warning which says

"template literal syntax' is only available in ES6 (use 'esversion: 6')"

I created a top level .jshintrc file (at root), and added the following json:

{
  "esversion":6
}

However, it is still throwing the same error. Any ideas how to resolve. I've included the link to the JSHint options page. I'd like to start playing around with ES6 syntax, but would prefer not to have extra warnings.

Thanks SO community!

Answer

Micheal Vu picture Micheal Vu · Nov 15, 2016

The filename should be .jshintrc, and the content is

{
  "esversion": 6
}