I am currently running my tests using protractor / grunt, but I am getting the following error message:
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
I think my .jshintrc file is not readable because I added this condition.
.jshintrc
{ "esversion": 6 }
Gruntfile.js
jshint : { all: ["tests/API/**/*.js"], options: { undef: true, mocha: true, node: true, jshintrc: true, esversion: 6, globals: { require: true, module: true, console: true, esversion: 6, } }, ui: ["tests/UI/**/*.js"], options: { undef: true, mocha: true, node: true, jshintrc: true, esversion: 6, globals: { require: true, module: true, console: true, esversion: 6, jshintrc: true, } } }
Any idea to solve this problem?
source share