I assume it's coming from no-console rule, which disallows calls to methods of the console
object.
In JavaScript that is designed to be executed in the browser, it’s
considered a best practice to avoid using methods on console
. Such
messages are considered to be for debugging purposes and therefore not
suitable to ship to the client. In general, calls using console
should
be stripped before being pushed to production.
Examples of correct code for this rule:
/*eslint no-console: "error"*/
// custom console Console.log("Hello world!");
As a solution, you can add this to your set of rules in .eslintrc
rules: {
'no-console': 'off'
}