Skip to content

Commit 1d29423

Browse files
ryan-m-walkercamchenry
authored andcommitted
feat(linter): implement unicorn/consistent-existence-index-check (#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>
1 parent 91346f7 commit 1d29423

File tree

3 files changed

+820
-0
lines changed

3 files changed

+820
-0
lines changed

crates/oxc_linter/src/rules.rs

+2
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ mod react_perf {
282282
mod unicorn {
283283
pub mod catch_error_name;
284284
pub mod consistent_empty_array_spread;
285+
pub mod consistent_existence_index_check;
285286
pub mod consistent_function_scoping;
286287
pub mod empty_brace_spaces;
287288
pub mod error_message;
@@ -869,6 +870,7 @@ oxc_macros::declare_all_lint_rules! {
869870
typescript::triple_slash_reference,
870871
unicorn::catch_error_name,
871872
unicorn::consistent_empty_array_spread,
873+
unicorn::consistent_existence_index_check,
872874
unicorn::consistent_function_scoping,
873875
unicorn::empty_brace_spaces,
874876
unicorn::error_message,

0 commit comments

Comments
 (0)