Console.log (not working) VS window.console.log

I have 2 Vue Projects

The first one I can use console.log without any Errors
The second one I must use window.console.log , and if I used console.log print an Error

error: Unexpected console statement (no-console) at src\App.vue:37:5:
35 | },
36 | beforeMount() {

37 | console.log(‘test’)
| ^
38 | }
39 | };
40 |

1 error found.

@ ./src/main.js 6:0-28 10:13-16
@ multi (webpack)-dev-server/client?http://192.168.1.2:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

.eslintrc.js

module.exports = {
  ...
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off'
    ...
  }
  ...
}
1 Like

Thank You :rose:

Thank You :rose: