@putout/plugin-remove-debugger 
The
debuggerstatement 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-debuggerRule
{
"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