跳转到内容

noDebugger

Diagnostic Category: lint/suspicious/noDebugger

Since: v1.0.0

Sources:

Disallow the use of debugger

debugger;
code-block.js:1:1 lint/suspicious/noDebugger  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

This is an unexpected use of the debugger statement.

> 1 │ debugger;
^^^^^^^^^
2 │

Unsafe fix: Remove debugger statement

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