7.0.0 β’ Published 2 years ago
@putout/plugin-remove-debugger v7.0.0
@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