Vue.js Eslint Parsing Error .: Unexpected Token
I am getting this error on a state.js file ( at => in the const profile ) cannot understand why ... thanks for feedback const credentials = { email: '', password: '' } con
Solution 1:
Turn on ES6:
parserOptions: {
parser: 'babel-eslint'
},
should be:
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 6
},
Post a Comment for "Vue.js Eslint Parsing Error .: Unexpected Token"