Skip to content

Commit fb4700a

Browse files

File tree

4 files changed

+537
-0
lines changed

4 files changed

+537
-0
lines changed

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,6 +2284,12 @@ impl RuleRunner for crate::rules::react::jsx_props_no_spread_multi::JsxPropsNoSp
22842284
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
22852285
}
22862286

2287+
impl RuleRunner for crate::rules::react::jsx_props_no_spreading::JsxPropsNoSpreading {
2288+
const NODE_TYPES: Option<&AstTypesBitset> =
2289+
Some(&AstTypesBitset::from_types(&[AstType::JSXSpreadAttribute]));
2290+
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
2291+
}
2292+
22872293
impl RuleRunner for crate::rules::react::no_array_index_key::NoArrayIndexKey {
22882294
const NODE_TYPES: Option<&AstTypesBitset> =
22892295
Some(&AstTypesBitset::from_types(&[AstType::CallExpression, AstType::JSXElement]));

crates/oxc_linter/src/rules.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ pub(crate) mod react {
364364
pub mod jsx_no_useless_fragment;
365365
pub mod jsx_pascal_case;
366366
pub mod jsx_props_no_spread_multi;
367+
pub mod jsx_props_no_spreading;
367368
pub mod no_array_index_key;
368369
pub mod no_children_prop;
369370
pub mod no_danger;
@@ -1045,6 +1046,7 @@ oxc_macros::declare_all_lint_rules! {
10451046
react::jsx_no_undef,
10461047
react::jsx_no_useless_fragment,
10471048
react::jsx_props_no_spread_multi,
1049+
react::jsx_props_no_spreading,
10481050
react::no_namespace,
10491051
react::no_array_index_key,
10501052
react::no_children_prop,

0 commit comments

Comments
 (0)