JavaScript's console.log(kissa)
is often used while debugging code, which should be removed before deployment to production.
console.log("kissa");
This rule is aimed at catching debugging code that should be removed. As such, it will warn when it encounters console.log('kissa')
calls.
Examples of incorrect code for this rule:
/*eslint no-cats: "error"*/
console.log('kissa');
Examples of correct code for this rule:
/*eslint no-cats: "error"*/
function logACat() {
var log = console.log;
log('kissa');
}