Skip to content

Commit f2e3e79

Browse files
authored
docs(linter): fix formatting inconsistencies in rule docs (oxc-project#11227)
1 parent e4c7614 commit f2e3e79

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ declare_oxc_lint!(
5656
///
5757
/// Examples of **correct** code for this rule:
5858
/// ```js
59-
///
6059
/// function foo() {
6160
/// var bar = 1;
6261
/// let baz = 2;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl<'ast> Visit<'ast> for RegexCollector<'ast> {
195195

196196
/// Determines if a backreference is useless — meaning it references a capturing
197197
/// group that hasn't (and cannot) participate at the time it's evaluated.
198-
//////
198+
///
199199
/// Returns the reason as a `Problem` if one is found; otherwise returns `None`.
200200
///
201201
/// # Problem types and examples:

crates/oxc_linter/src/rules/jest/no_disabled_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare_oxc_lint!(
2929
///
3030
/// ### Example
3131
///
32-
///```js
32+
/// ```js
3333
/// describe.skip('foo', () => {});
3434
/// it.skip('foo', () => {});
3535
/// test.skip('foo', () => {});

crates/oxc_linter/src/rules/nextjs/no_duplicate_head.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ declare_oxc_lint!(
4040
/// <NextScript />
4141
/// </body>
4242
/// </Html>
43-
/// )
44-
/// }
45-
///}
43+
/// )
44+
/// }
45+
/// }
4646
/// export default MyDocument
4747
/// ```
4848
///
@@ -61,9 +61,9 @@ declare_oxc_lint!(
6161
/// <NextScript />
6262
/// </body>
6363
/// </Html>
64-
/// )
65-
/// }
66-
///}
64+
/// )
65+
/// }
66+
/// }
6767
/// export default MyDocument
6868
/// ```
6969
NoDuplicateHead,

0 commit comments

Comments
 (0)