@putout/plugin-remove-debugger
v8.0.1
Published
šPutout plugin adds ability to find and remove 'debugger' statement
Maintainers
Readme
@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
