When you start GRUNT, you will get errors on ES6 keywords, each LET will be flagged as error,
On the other hand, not all Browsers support ES6. So be aware that you may have to switch it back, if your browsers provide no support for ES6.
To change it:
- open the node-modules folder in your project dir
- scoll down until you find the module eslint-config-default . Edit the file .eslintrc in a tect editor (screenshots are from WebStorm IDE)
in this file, you’ll see that the file off.js is used for configuration. Open this file in a text editor.
Here you see, that es6 is set to false (Yellow Arrow). Change this to true and save the file (maybe under another name. In this case, correct the require command to reflect the new name).
So now the GRUNT-file is producing no problems when it encouters a LET.
But be aware: If your bropwsers lack some support for es6, you must switch back to ES5.