Skip to content

Files

Latest commit

09ae161 · Apr 13, 2024

History

History
 
 

plugin-remove-debugger

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 6, 2023
Apr 5, 2023
Apr 6, 2023
Jan 6, 2022
Apr 6, 2023
Apr 10, 2024
Apr 13, 2024
Apr 6, 2023
Jan 6, 2019
Jun 29, 2022
Jun 5, 2023
Apr 8, 2024

@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