Skip to main content

noDebugger

Disallow the use of debugger

Examples

Invalid

debugger;
warning[noDebugger]: This is an unexpected use of the debugger statement.
   noDebugger.js:1:1
  
1  debugger;
   ---------

Suggested fix: Remove debugger statement
    | @@ -1 +1 @@
0   | - debugger;
  0 | + 

Valid

const test = { debugger: 1 };
test.debugger;