Skip to content

Commit

Permalink
feat(linter) eslint plugin unicorn: no array reduce (restriction) (#1610
Browse files Browse the repository at this point in the history
)
  • Loading branch information
camc314 authored Dec 3, 2023
1 parent 9af2484 commit eaffb1d
Show file tree
Hide file tree
Showing 5 changed files with 879 additions and 50 deletions.
4 changes: 3 additions & 1 deletion crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ mod unicorn {
pub mod filename_case;
pub mod new_for_builtins;
pub mod no_abusive_eslint_disable;
pub mod no_array_reduce;
pub mod no_await_expression_member;
pub mod no_console_spaces;
pub mod no_document_cookie;
Expand Down Expand Up @@ -331,12 +332,12 @@ oxc_macros::declare_all_lint_rules! {
jest::valid_title,
unicorn::catch_error_name,
unicorn::empty_brace_spaces,
unicorn::prefer_array_some,
unicorn::error_message,
unicorn::escape_case,
unicorn::filename_case,
unicorn::new_for_builtins,
unicorn::no_abusive_eslint_disable,
unicorn::no_array_reduce,
unicorn::no_await_expression_member,
unicorn::no_console_spaces,
unicorn::no_document_cookie,
Expand Down Expand Up @@ -366,6 +367,7 @@ oxc_macros::declare_all_lint_rules! {
unicorn::numeric_separators_style,
unicorn::prefer_add_event_listener,
unicorn::prefer_array_flat_map,
unicorn::prefer_array_some,
unicorn::prefer_blob_reading_methods,
unicorn::prefer_code_point,
unicorn::prefer_date_now,
Expand Down
Loading

0 comments on commit eaffb1d

Please sign in to comment.