Repository: biomejs/biome (language: rust)

Issue:
🐛 React-only lint rule useJsxKeyInIterable in Biome recommended config
### Environment information

```block
CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           linux

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.18.2"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.8.2"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0
```

### What happened?

We use Biome for linting and formatting in our SolidJS project. Today I noticed the [useJsxKeyInIterable](https://biomejs.dev/linter/rules/use-jsx-key-in-iterable/) rule failing because I didn't include React's "key" attribute in my div. This is a React-only rule and it isn't satisfiable in SolidJS (adding "key" causes a type error since it's a React attribute, not an HTMLDivElement attribute), so I had to disable it to use Biome with SolidJS.

### Expected result

Since Biome is not a React-only linter, I would expect the default config not to include rules that only apply for React.

### Code of Conduct

- [x] I agree to follow Biome's Code of Conduct


Discussion / hints:
Thank you for bringing it up, we will fix it for v2.

The rule shouldn't be recommended, and it should belong to the react domain
> The rule shouldn't be recommended, and it should belong to the react domain

I think it should be recommended *within* the React domain, no?
Yes, sounds about right 

Fix patch:
diff --git a/.changeset/dull-gorillas-juggle.md b/.changeset/dull-gorillas-juggle.md
new file mode 100644
index 000000000000..d5f31fbb8a7c
--- /dev/null
+++ b/.changeset/dull-gorillas-juggle.md
@@ -0,0 +1,5 @@
+---
+"@biomejs/biome": patch
+---
+
+Fix [#5024](https://github.com/biomejs/biome/issues/5024), add `useJsxKeyInIterable` rule to React domain.
diff --git a/crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs b/crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs
index 86258701c4b7..1a2b872b0e21 100644
--- a/crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs
+++ b/crates/biome_js_analyze/src/lint/correctness/use_jsx_key_in_iterable.rs
@@ -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;
@@ -44,6 +44,7 @@ declare_lint_rule! {
         source_kind: RuleSourceKind::SameLogic,
         recommended: true,
         severity: Severity::Error,
+        domains: &[RuleDomain::React],
     }
 }
 


Test patch: