Détail du package

@putout/plugin-remove-console

coderaiser45.4kMIT6.0.0

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

putout, putout-plugin, plugin, remove

readme

@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';