Skip to content

Commit e1c21ca

Browse files
committed
fix(linter/jsx-key): implement missing options (#15731)
fixes #15615
1 parent d2c9740 commit e1c21ca

File tree

3 files changed

+571
-481
lines changed

3 files changed

+571
-481
lines changed

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,8 +2222,11 @@ impl RuleRunner for crate::rules::react::jsx_handler_names::JsxHandlerNames {
22222222
}
22232223

22242224
impl RuleRunner for crate::rules::react::jsx_key::JsxKey {
2225-
const NODE_TYPES: Option<&AstTypesBitset> =
2226-
Some(&AstTypesBitset::from_types(&[AstType::JSXElement, AstType::JSXFragment]));
2225+
const NODE_TYPES: Option<&AstTypesBitset> = Some(&AstTypesBitset::from_types(&[
2226+
AstType::ArrayExpression,
2227+
AstType::JSXElement,
2228+
AstType::JSXFragment,
2229+
]));
22272230
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
22282231
}
22292232

0 commit comments

Comments
 (0)