Skip to content

Commit

Permalink
implement the unicorn/consistent-existence-index-check lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-m-walker committed Nov 13, 2024
1 parent fe25b65 commit 414e2a6
Show file tree
Hide file tree
Showing 3 changed files with 640 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 @@ -270,6 +270,7 @@ mod react_perf {

mod unicorn {
pub mod catch_error_name;
pub mod consistent_existence_index_check;
pub mod consistent_function_scoping;
pub mod empty_brace_spaces;
pub mod error_message;
Expand Down Expand Up @@ -838,6 +839,7 @@ oxc_macros::declare_all_lint_rules! {
typescript::prefer_ts_expect_error,
typescript::triple_slash_reference,
unicorn::catch_error_name,
unicorn::consistent_existence_index_check,
unicorn::consistent_function_scoping,
unicorn::empty_brace_spaces,
unicorn::error_message,
Expand Down
Loading

0 comments on commit 414e2a6

Please sign in to comment.