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

后端 未结 17 1593
遇见更好的自我
遇见更好的自我 2020-12-07 07:39

I\'m using eslint with Sublime Text 3 and I am writing gulpfile.js.

/*eslint-env node*/
var gulp = require(\'gulp\');

gulp.task(\'default\', fu         


        
17条回答
  •  感情败类
    2020-12-07 08:19

    If you're still having trouble even after configuring your package.json according to the documentation (if you've opted to use package.json to track rather than separate config files):

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

    And it still isn't working for you, don't forget you need to go back to the command line and do npm install again. :)

提交回复
热议问题