no-print
Reports calls written as print(...).
Rule details Problem
Section titled “Rule details ”ProblemThis 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.
Examples
Section titled “Examples” Incorrect
Direct print call
Section titled “Direct print call”print("Request failed");print("User logged in", userId); Correct
Other logging calls are not checked
Section titled “Other logging calls are not checked”logger.error("Request failed");obj.print();console.log("debug");Related rules
Section titled “Related rules” no-warn Bans calls written as warn(...)