Skip to content

Commit 7b64f27

Browse files
authored
docs(linter): improve no-plusplus and no-irregular-whitespace rule docs (#14790)
Closing code blocks were missing in the examples sections of both these rules. As you can see on the website pages here: - https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-plusplus.html#examples - https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-irregular-whitespace.html#examples
1 parent aa562f7 commit 7b64f27

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ declare_oxc_lint!(
3939
/// function example() {
4040
/// var foo = 'bar'; // regular spaces only
4141
/// }
42+
/// ```
4243
NoIrregularWhitespace,
4344
eslint,
4445
correctness

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ declare_oxc_lint!(
7575
/// for (let i = 0; i < l; i += 1) {
7676
/// doSomething(i);
7777
/// }
78+
/// ```
7879
///
7980
/// ### Options
8081
///

0 commit comments

Comments
 (0)