Skip to content

Commit

Permalink
feat(linter): implement unicorn/consistent-existence-index-check (#…
Browse files Browse the repository at this point in the history
…7262)

[unicorn/consistent-existence-index-check](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-existence-index-check.md)
for #684

---------

Co-authored-by: Cam McHenry <camchenry@users.noreply.github.com>
  • Loading branch information
ryan-m-walker and camchenry authored Nov 16, 2024
1 parent 28d37e4 commit d445e0f
Show file tree
Hide file tree
Showing 3 changed files with 820 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 @@ -282,6 +282,7 @@ mod react_perf {
mod unicorn {
pub mod catch_error_name;
pub mod consistent_empty_array_spread;
pub mod consistent_existence_index_check;
pub mod consistent_function_scoping;
pub mod empty_brace_spaces;
pub mod error_message;
Expand Down Expand Up @@ -869,6 +870,7 @@ oxc_macros::declare_all_lint_rules! {
typescript::triple_slash_reference,
unicorn::catch_error_name,
unicorn::consistent_empty_array_spread,
unicorn::consistent_existence_index_check,
unicorn::consistent_function_scoping,
unicorn::empty_brace_spaces,
unicorn::error_message,
Expand Down
Loading

0 comments on commit d445e0f

Please sign in to comment.