DEV Community

alin
alin

Posted on

Answer: Eslint: How to disable “unexpected console statement” in Node.js and Vue.js?

For vue-cli 3 open package.json and under section eslintConfig put no-console under rules and restart dev server (npm run serve or yarn serve)

...
"eslintConfig": {
    ...
    "rules": {
      "no-console": "off"
    },
    ...

Top comments (2)

Collapse
 
wittyjudge profile image
Ruslan

Thank you. You helped me :)

Collapse
 
narthcodes profile image
dumtochukwu

life saver thank you