@putout/plugin-remove-debugger

7.0.0 • Public • Published

@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

Package Sidebar

Install

npm i @putout/plugin-remove-debugger

Weekly Downloads

5,331

Version

7.0.0

License

MIT

Unpacked Size

3.92 kB

Total Files

4

Last publish

Collaborators

  • coderaiser