diff --git a/crates/oxc_linter/src/rules/eslint/no_debugger.rs b/crates/oxc_linter/src/rules/eslint/no_debugger.rs index cd5b286c83a5f..1a035b1cdffb8 100644 --- a/crates/oxc_linter/src/rules/eslint/no_debugger.rs +++ b/crates/oxc_linter/src/rules/eslint/no_debugger.rs @@ -24,6 +24,8 @@ declare_oxc_lint!( /// /// ### Example /// + /// Examples of **incorrect** code for this rule: + /// /// ```javascript /// async function main() { /// const data = await getData(); @@ -31,6 +33,15 @@ declare_oxc_lint!( /// debugger; /// } /// ``` + /// + /// Examples of **correct** code for this rule: + /// ```javascript + /// async function main() { + /// const data = await getData(); + /// const result = complexCalculation(data); + /// } + /// ``` + /// NoDebugger, eslint, correctness,