jshint 'esversion: 6' issue

2.1k Views Asked by At

I'm having an issue while running the jshint task. It alerts me to add esversion: 6 to my .jshintrc file. I entered it like so:

{    
    "esversion": 6    
}    

When that didn't work I tried adding it inline like so:

/*jshint esversion: 6 */    

However, it's still throwing the same error. Has anyone else experienced this?

1

There are 1 best solutions below

0
BlackSpy On

{ "esversion": 6 }

is the correct syntax for the .jshintrc file. You probably have the file at the wrong location - it needs to be in the same path the jshint executes from.