Skip to content
Closed
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
5 changes: 5 additions & 0 deletions crates/oxc_linter/src/generated/rule_runner_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ impl RuleRunner for crate::rules::eslint::max_params::MaxParams {
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
}

impl RuleRunner for crate::rules::eslint::max_statements::MaxStatements {
const NODE_TYPES: Option<&AstTypesBitset> = None;
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
}

impl RuleRunner for crate::rules::eslint::new_cap::NewCap {
const NODE_TYPES: Option<&AstTypesBitset> =
Some(&AstTypesBitset::from_types(&[AstType::CallExpression, AstType::NewExpression]));
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 @@ -66,6 +66,7 @@ pub(crate) mod eslint {
pub mod max_lines_per_function;
pub mod max_nested_callbacks;
pub mod max_params;
pub mod max_statements;
pub mod new_cap;
pub mod no_alert;
pub mod no_array_constructor;
Expand Down Expand Up @@ -713,6 +714,7 @@ oxc_macros::declare_all_lint_rules! {
eslint::max_lines,
eslint::max_nested_callbacks,
eslint::max_params,
eslint::max_statements,
eslint::new_cap,
eslint::no_implicit_coercion,
eslint::no_inline_comments,
Expand Down
Loading
Loading