Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@putout/plugin-remove-debugger

coderaiser49.1kMIT7.0.0

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

putout, putout-plugin, putout-plugin-remove, plugin, debugger

readme

@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