From e903115be10524be440759e680be136ba014cdc7 Mon Sep 17 00:00:00 2001 From: Fredrik Lanker Date: Wed, 12 Jun 2024 10:33:57 +0200 Subject: [PATCH] fix: remove unnecessary example The two examples given only differed on how the div element was closed (self-closing vs non-self-closing), which is not relevant to the rule at hand. To avoid confusing the reader, let's keep only one of the examples. The non-self-closing case is tested explicitly in the dedicated test cases for useKeyWithClickEvents, so we don't loose any test coverage with this change. --- .../src/lint/a11y/use_key_with_click_events.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/biome_js_analyze/src/lint/a11y/use_key_with_click_events.rs b/crates/biome_js_analyze/src/lint/a11y/use_key_with_click_events.rs index 7241fa7803bf..9f700488acb2 100644 --- a/crates/biome_js_analyze/src/lint/a11y/use_key_with_click_events.rs +++ b/crates/biome_js_analyze/src/lint/a11y/use_key_with_click_events.rs @@ -17,10 +17,6 @@ declare_rule! { ///
{}} /> /// ``` /// - /// ```jsx,expect_diagnostic - ///
{}} >
- /// ``` - /// /// ### Valid /// /// ```jsx