Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

blindkrone's avatar

How to disable unexpected console statement error?

I searched that i should put the "rules": { "no-console": 0 }, in .eslint.js thing but i can't find it and what line i should add it

0 likes
1 reply
Sinnbeck's avatar

Create a .eslintrc file in your root directory and add this to it.

{
    "rules": {
       "no-console": 0
    }
}

Please or to participate in this conversation.