Skip to content

Latest commit

 

History

History

plugin-remove-console

@putout/plugin-remove-console NPM version

The console.log() method outputs a message to the web console. The message may be a single string (with optional substitution values), or it may be any one or more JavaScript objects.

(c) MDN

🐊Putout plugin adds ability to find and remove console.log calls.

Install

npm i @putout/plugin-remove-console

Rule

{
    "rules": {
        "remove-console": "on"
    }
}

❌ Example of incorrect code

const hello = 'world';
console.log(hello);

✅ Example of correct code

const hello = 'world';