Parsing error: The keyword ‘const’ is reserved
In the file .eslintrc.js,
because eslint reviews es5 by default, you need to explicitly let it review es6. Therefore, you need to configure the parserOptions
configuration as follows:
module.exports = {
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error"
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
}
}