Skip to content

Commit

Permalink
feat(linter): add init-declarations rule (#8909)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangtiandi1999 and autofix-ci[bot] authored Feb 7, 2025
1 parent 44d985b commit 41ad42a
Show file tree
Hide file tree
Showing 3 changed files with 631 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ mod eslint {
pub mod func_names;
pub mod getter_return;
pub mod guard_for_in;
pub mod init_declarations;
pub mod max_classes_per_file;
pub mod max_lines;
pub mod max_params;
Expand Down Expand Up @@ -544,6 +545,7 @@ oxc_macros::declare_all_lint_rules! {
eslint::func_names,
eslint::getter_return,
eslint::guard_for_in,
eslint::init_declarations,
eslint::max_classes_per_file,
eslint::max_lines,
eslint::max_params,
Expand Down
Loading

0 comments on commit 41ad42a

Please sign in to comment.