This is the error I get when using const:
Create .jshintrc file in the root dir and add there the latest js version: "esversion": 9 and asi version: "asi": true (it will help you to avoid using semicolons)
.jshintrc
"esversion": 9
"asi": true
{ "esversion": 9, "asi": true }