Skip to content

Commit

Permalink
refactor(linter): split unicorn/prefer-spread and `eslint/prefer-sp…
Browse files Browse the repository at this point in the history
…read` into own rules (#8329)

closes #7948
  • Loading branch information
Sysix authored Jan 9, 2025
1 parent dddbd29 commit b19d809
Show file tree
Hide file tree
Showing 5 changed files with 1,244 additions and 1,213 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 @@ -379,6 +379,7 @@ mod unicorn {
pub mod prefer_regexp_test;
pub mod prefer_set_has;
pub mod prefer_set_size;
pub mod prefer_spread;
pub mod prefer_string_raw;
pub mod prefer_string_replace_all;
pub mod prefer_string_slice;
Expand Down Expand Up @@ -955,6 +956,7 @@ oxc_macros::declare_all_lint_rules! {
unicorn::no_zero_fractions,
unicorn::number_literal_case,
unicorn::numeric_separators_style,
unicorn::prefer_spread,
unicorn::prefer_add_event_listener,
unicorn::prefer_array_flat,
unicorn::prefer_array_flat_map,
Expand Down
Loading

0 comments on commit b19d809

Please sign in to comment.