Skip to content

no-console rule does not report when console method is passed as callback #11780

@kirick13

Description

@kirick13

The no-console rule doesn’t report anything when a console method is passed as a callback, like this:

somePromise().catch(console.error);

It only reports when the method is actually called, like

console.error('123');

ESLint flags both cases. Just wanted to check if this is something that should be aligned in oxlint as well.

Oxlint version: 1.1.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions