Skip to content

no-print

Reports calls written as print(...).

This rule is simple on purpose. If the callee is an identifier named print, it reports the call. It does not report obj.print() or console.log(...), and it has no options.

Incorrect
print("Request failed");
print("User logged in", userId);
Correct
logger.error("Request failed");
obj.print();
console.log("debug");