I am getting this error from ESLint:
error Parsing error: The keyword \'const\' is reserved
from
I had this same problem with this part of my code:
const newComment = {
dishId: dishId,
rating: rating,
author: author,
comment: comment
};
newComment.date = new Date().toISOString();
Same error, const is a reserved word.
The thing is, I made the .eslintrc.js from the link you gave in the update and still got the same error. Also, I get an parsing error in the .eslintrc.js
: Unexpected token ':'
.
Right in this part:
"env": {
"browser": true,
"node": true,
"es6": true
},
...