Skip to content

Commit

Permalink
fix(lint): add react domain to useJsxKeyInIterable (#5043)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayllyz authored Feb 6, 2025
1 parent bff5068 commit 3868597
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-gorillas-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@biomejs/biome": patch
---

Fix [#5024](https://github.com/biomejs/biome/issues/5024), add `useJsxKeyInIterable` rule to React domain.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::react::{is_react_call_api, ReactLibrary};
use crate::services::semantic::Semantic;
use biome_analyze::{context::RuleContext, declare_lint_rule, Rule, RuleDiagnostic};
use biome_analyze::{context::RuleContext, declare_lint_rule, Rule, RuleDiagnostic, RuleDomain};
use biome_analyze::{RuleSource, RuleSourceKind};
use biome_console::markup;
use biome_diagnostics::Severity;
Expand Down Expand Up @@ -44,6 +44,7 @@ declare_lint_rule! {
source_kind: RuleSourceKind::SameLogic,
recommended: true,
severity: Severity::Error,
domains: &[RuleDomain::React],
}
}

Expand Down

0 comments on commit 3868597

Please sign in to comment.