File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed
oxc_regular_expression/src/parser/pattern_parser
tasks/prettier_conformance/src Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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| {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ pub fn is_class_set_syntax_character(cp: u32) -> bool {
2323// ```
2424// ClassSetReservedDoublePunctuator :: one of
2525// && !! ## $$ %% ** ++ ,, .. :: ;; << == >> ?? @@ ^^ `` ~~
26- // ````
26+ // ```
2727pub 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| {
Original file line number Diff line number Diff 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" ) {
You can’t perform that action at this time.
0 commit comments