Skip to content

Commit 0b9da38

Browse files
LBrianBrianYPLiucamc314
authored
feat(linter): implement unicorn/prefer-negative-index (#6920)
[unicorn/prefer-negative-index](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-negative-index.md) --------- Co-authored-by: Brian Liu <brian@redflagsdating.com> Co-authored-by: Cameron Clark <cameron.clark@hey.com>
1 parent ecd0c08 commit 0b9da38

3 files changed

Lines changed: 1154 additions & 0 deletions

File tree

crates/oxc_linter/src/rules.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ mod unicorn {
353353
pub mod prefer_modern_dom_apis;
354354
pub mod prefer_modern_math_apis;
355355
pub mod prefer_native_coercion_functions;
356+
pub mod prefer_negative_index;
356357
pub mod prefer_node_protocol;
357358
pub mod prefer_number_properties;
358359
pub mod prefer_optional_catch_binding;
@@ -943,6 +944,7 @@ oxc_macros::declare_all_lint_rules! {
943944
unicorn::prefer_modern_dom_apis,
944945
unicorn::prefer_modern_math_apis,
945946
unicorn::prefer_native_coercion_functions,
947+
unicorn::prefer_negative_index,
946948
unicorn::prefer_node_protocol,
947949
unicorn::prefer_number_properties,
948950
unicorn::prefer_optional_catch_binding,

0 commit comments

Comments
 (0)