In this short post, we will see how we can fix the "unexpected console statement" error from node and vue.
In Nodejs:
If you are using NodeJs, then to fix this error, follow these steps:
'no-console': 'off'
in the rules section.module.exports = {
rules: {
'no-console': 'off',
},
};
In Vue:
To fix the "unexpected error statement" error in your Vue project, follow these steps:
"no-console": "off"
under rules.npm run serve
or yarn serve
....
"eslintConfig": {
...
"rules": {
"no-console": "off"
},
}
...