Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -2505,6 +2505,12 @@ impl RuleRunner for crate::rules::react::react_in_jsx_scope::ReactInJsxScope {
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
}

impl RuleRunner for crate::rules::react::require_optimization::RequireOptimization {
const NODE_TYPES: Option<&AstTypesBitset> =
Some(&AstTypesBitset::from_types(&[AstType::CallExpression, AstType::Class]));
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
}

impl RuleRunner for crate::rules::react::require_render_return::RequireRenderReturn {
const NODE_TYPES: Option<&AstTypesBitset> =
Some(&AstTypesBitset::from_types(&[AstType::ArrowFunctionExpression, AstType::Function]));
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 @@ -396,6 +396,7 @@ pub(crate) mod react {
pub mod only_export_components;
pub mod prefer_es6_class;
pub mod react_in_jsx_scope;
pub mod require_optimization;
pub mod require_render_return;
pub mod rules_of_hooks;
pub mod self_closing_comp;
Expand Down Expand Up @@ -1102,6 +1103,7 @@ oxc_macros::declare_all_lint_rules! {
react::only_export_components,
react::prefer_es6_class,
react::react_in_jsx_scope,
react::require_optimization,
react::require_render_return,
react::rules_of_hooks,
react::self_closing_comp,
Expand Down
Loading
Loading