Skip to content

Commit db6afb9

Browse files
committed
docs(linter): improve docs of no-debugger (#11033)
1 parent 16541de commit db6afb9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

crates/oxc_linter/src/rules/eslint/no_debugger.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,24 @@ declare_oxc_lint!(
2424
///
2525
/// ### Example
2626
///
27+
/// Examples of **incorrect** code for this rule:
28+
///
2729
/// ```javascript
2830
/// async function main() {
2931
/// const data = await getData();
3032
/// const result = complexCalculation(data);
3133
/// debugger;
3234
/// }
3335
/// ```
36+
///
37+
/// Examples of **correct** code for this rule:
38+
/// ```javascript
39+
/// async function main() {
40+
/// const data = await getData();
41+
/// const result = complexCalculation(data);
42+
/// }
43+
/// ```
44+
///
3445
NoDebugger,
3546
eslint,
3647
correctness,

0 commit comments

Comments
 (0)