2

I am trying on a dummy project and facing this error while using console.log('debug anything'); in javascript files. I am using gulp and new to the technology so I couldn't figure out whats happening.

My project is running fine but terminal shows all console.debug() statements as errors.

I tried searching for it and found that .eslintrc file should be modified but that didn't worked. I followed the below link

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

thanks in advance for any help.

Community
  • 1
  • 1
rahuljain1311
  • 1,822
  • 19
  • 20

1 Answers1

4

create a file name .eslintrc parallel to node_modules folder and write below content and save and check

{
  "extends": "eslint:recommended",
  "plugins": ["angular"],
  "env": {
    "browser": true,
    "jasmine": true
  },
  "rules":{
      "no-console": 0,
      "angular/log": 0
  }
}
xkeshav
  • 53,360
  • 44
  • 177
  • 245