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

Create a .eslintrc.js in the directory of your file, and put the following contents in it:

module.exports = {
    rules: {
        'no-console': 'off',
    },
};

Leave a Comment