Skip to content

Commit 9b7b083

Browse files
docs(linter): fix error in curly "all" example (#15801)
closes https://github.com/oxc-project/oxc-project.github.io/pull/642/files Co-authored-by: Jacob Carpenter <jacobcarpenter@users.noreply.github.com>
1 parent 32f4fdd commit 9b7b083

File tree

1 file changed

+7
-3
lines changed
  • crates/oxc_linter/src/rules/eslint

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ declare_oxc_lint!(
9999
/// ```js
100100
/// /* curly: ["error", "all"] */
101101
///
102-
/// if (foo) { foo++; }
103-
/// while (bar) { bar--; }
102+
/// if (foo) {
103+
/// foo++;
104+
/// }
105+
/// while (bar) {
106+
/// bar--;
107+
/// }
104108
/// do { foo(); } while (bar);
105-
///```
109+
/// ```
106110
///
107111
/// #### `"multi"`
108112
/// Examples of **incorrect** code for this rule with the `"multi"` option:

0 commit comments

Comments
 (0)