this isn't a playwright issue, it's a Node server-side code issue
we shouldn't change our ruleset generally
it is ok (encouraged!) to do logging in server code (and maybe also in some situations in test code, though most instances we found seemed suspicious) but that should be done via a centralized logging service, not console
The action item for this issue is to update our docs for this rule.
Currently, the Playwright ruleset inherits the TS/JS ruleset configuration for
no-console
which disallows usingconsole.log
.It is suppressed in many places, including:
What is our recommendation for using
console
within Playwright code? Can we disable this rule or come up with an alternate suggestion?