Skip to content
6 changes: 6 additions & 0 deletions crates/oxc_linter/src/generated/rule_runner_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2324,6 +2324,12 @@ impl RuleRunner for crate::rules::react::jsx_key::JsxKey {
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
}

impl RuleRunner for crate::rules::react::jsx_max_depth::JsxMaxDepth {
const NODE_TYPES: Option<&AstTypesBitset> =
Some(&AstTypesBitset::from_types(&[AstType::JSXElement, AstType::JSXFragment]));
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
}

impl RuleRunner for crate::rules::react::jsx_no_comment_textnodes::JsxNoCommentTextnodes {
const NODE_TYPES: Option<&AstTypesBitset> =
Some(&AstTypesBitset::from_types(&[AstType::JSXText]));
Expand Down
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ pub(crate) mod react {
pub mod jsx_fragments;
pub mod jsx_handler_names;
pub mod jsx_key;
pub mod jsx_max_depth;
pub mod jsx_no_comment_textnodes;
pub mod jsx_no_duplicate_props;
pub mod jsx_no_script_url;
Expand Down Expand Up @@ -1072,6 +1073,7 @@ oxc_macros::declare_all_lint_rules! {
react::jsx_curly_brace_presence,
react::jsx_handler_names,
react::jsx_key,
react::jsx_max_depth,
react::jsx_no_comment_textnodes,
react::jsx_no_duplicate_props,
react::jsx_no_script_url,
Expand Down
Loading
Loading