This rule encourages the use of the object spread syntax over the Object.assign method when creating a new object from an existing one where the first argument is an empty object. This is because the object spread syntax is more concise, easier to read, and can eliminate the need for null checks that are often necessary with Object.assign.
If you need to use Object.assign, make sure that the first argument is not an object literal, as this can easily be replaced with the spread syntax.