When spreading a value into an object literal, JavaScript handles undefined and null by skipping them without throwing an error.
This means that fallback patterns like { ...value || {} } or { ...value ?? {} } are unnecessary.
This rule reports when an object spread fallback is an empty object.
If you prefer the explicit fallback pattern for clarity, even when it’s not strictly necessary, you might want to disable this rule.
Some developers find { ...value || {} } more readable as it explicitly signals the intent to handle potentially nullish values, even though the behavior is identical without the fallback.