Skip to content

How to fix ‘unexpected console statement’ error in Node.js?

To fix the ‘unexpected console statement’ error in Node.js, just create a .eslintrc.js in the directory of the project and put the following configuration in it.

module.exports = {
    rules: {
        'no-console': 'off',
See also  How can the default node version be set using NVM?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.