Why this matters
Using console logging in production can expose sensitive data and negatively impact performance. Always remove or disable debug logs before deployment.
Ensure that console statements are removed in production code. Console logs can expose sensitive data and impact performance.
Using console logging in production can expose sensitive data and negatively impact performance. Always remove or disable debug logs before deployment.
Side-by-side examples engineers can pattern-match during review.
var myObj = getData();
console.log(myObj); // bad
console.debug("myObj:", myObj); // bad// (no example provided)var myObj = getData();
console.log(myObj); // bad
console.debug("myObj:", myObj); // badFrom the same buckets as this rule.