Skip to content

Commit

Permalink
feat(linter): implement eslint/prefer-object-spread (#8216)
Browse files Browse the repository at this point in the history
implement
[eslint:prefer-object-spread](https://eslint.org/docs/latest/rules/prefer-object-spread)

(ref: #479)
  • Loading branch information
tbashiyy authored Feb 1, 2025
1 parent 5041cb3 commit 1a41181
Show file tree
Hide file tree
Showing 3 changed files with 1,463 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ mod eslint {
pub mod prefer_exponentiation_operator;
pub mod prefer_numeric_literals;
pub mod prefer_object_has_own;
pub mod prefer_object_spread;
pub mod prefer_promise_reject_errors;
pub mod prefer_rest_params;
pub mod prefer_spread;
Expand Down Expand Up @@ -647,10 +648,11 @@ oxc_macros::declare_all_lint_rules! {
eslint::no_void,
eslint::no_with,
eslint::prefer_promise_reject_errors,
eslint::prefer_rest_params,
eslint::prefer_exponentiation_operator,
eslint::prefer_numeric_literals,
eslint::prefer_object_has_own,
eslint::prefer_object_spread,
eslint::prefer_rest_params,
eslint::prefer_spread,
eslint::radix,
eslint::require_await,
Expand Down
Loading

0 comments on commit 1a41181

Please sign in to comment.