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
2 people authored and Dunqing committed Nov 18, 2024
1 parent b348c3c commit 83fe730
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 83fe730

Please sign in to comment.