Skip to content

Latest commit

 

History

History

plugin-remove-debugger

@putout/plugin-remove-debugger NPM version

The debugger statement invokes any available debugging functionality, such as setting a breakpoint. If no debugging functionality is available, this statement has no effect.

(c) MDN

🐊Putout plugin adds ability to find and remove debugger statement.

Install

npm i @putout/plugin-remove-debugger

Rule

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

❌ Example of incorrect code

debugger;
console.log('hello');

✅ Example of correct code

console.log('hello');

Comparison

Linter Rule Fix
🐊 Putout remove-debugger
ESLint no-debugger
🦀 RSLint no-debugger

License

MIT