Skip to content

Commit a86cbb3

Browse files
authored
docs(linter): fix incorrect backticks of fenced code blocks (#10947)
1 parent 078bf0b commit a86cbb3

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ declare_oxc_lint!(
9494
///
9595
/// ```javascript
9696
/// const b = a|0;
97-
/// ``````
97+
/// ```
9898
NoBitwise,
9999
eslint,
100100
restriction

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn check_parents<'a>(
181181
// function foo() {
182182
// foo()
183183
// }
184-
// ````
184+
// ```
185185
// To avoid infinite loop, we need to check if the function is already visited when
186186
// call `check_parents`.
187187
let boolean = symbol_table.get_resolved_references(symbol_id).any(|reference| {

crates/oxc_linter/src/rules/jsx_a11y/anchor_is_valid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ declare_oxc_lint!(
7474
/// <a href="#" onClick={foo}>Perform action</a>
7575
/// <a onClick={foo}>Perform action</a>
7676
/// </>
77-
/// ````
77+
/// ```
7878
///
7979
/// All these anchor implementations indicate that the element is only used to execute JavaScript code. All the above should be replaced with:
8080
///
8181
/// ```jsx
8282
/// <button onClick={foo}>Perform action</button>
8383
/// ```
84-
/// `
84+
///
8585
/// ### Why is this bad?
8686
/// There are **many reasons** why an anchor should not have a logic and have a correct `href` attribute:
8787
/// - it can disrupt the correct flow of the user navigation e.g. a user that wants to open the link

crates/oxc_linter/src/rules/jsx_a11y/lang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare_oxc_lint!(
4242
/// ```jsx
4343
/// <html>
4444
/// <html lang="foo">
45-
/// ````
45+
/// ```
4646
///
4747
/// Examples of **correct** code for this rule:
4848
/// ```jsx

crates/oxc_regular_expression/src/parser/pattern_parser/character.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn is_class_set_syntax_character(cp: u32) -> bool {
2323
// ```
2424
// ClassSetReservedDoublePunctuator :: one of
2525
// && !! ## $$ %% ** ++ ,, .. :: ;; << == >> ?? @@ ^^ `` ~~
26-
// ````
26+
// ```
2727
pub fn is_class_set_reserved_double_punctuator(cp1: u32, cp2: u32) -> bool {
2828
char::from_u32(cp1).is_some_and(|ch1| {
2929
char::from_u32(cp2).is_some_and(|ch2| {

tasks/prettier_conformance/src/spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl VisitMut<'_> for SpecParser {
5151
//
5252
// runFormatTest(import.meta, parser, {});
5353
// runFormatTest(import.meta, parser, { semi: false });
54-
// ````
54+
// ```
5555
fn visit_variable_declarator(&mut self, decl: &mut VariableDeclarator<'_>) {
5656
let Some(name) = decl.id.get_identifier_name() else { return };
5757
if !matches!(name.as_str(), "parser" | "parsers") {

0 commit comments

Comments
 (0)