Skip to content

Commit

Permalink
feat(linter): implement vars-on-top rule
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Dec 28, 2024
1 parent 5234d96 commit 4d90b00
Show file tree
Hide file tree
Showing 3 changed files with 751 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 @@ -152,6 +152,7 @@ mod eslint {
pub mod unicode_bom;
pub mod use_isnan;
pub mod valid_typeof;
pub mod vars_on_top;
pub mod yoda;
}

Expand Down Expand Up @@ -644,6 +645,7 @@ oxc_macros::declare_all_lint_rules! {
eslint::unicode_bom,
eslint::use_isnan,
eslint::valid_typeof,
eslint::vars_on_top,
eslint::yoda,
import::default,
import::export,
Expand Down
Loading

0 comments on commit 4d90b00

Please sign in to comment.