Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

prefer-object-spread: lint more locations, allow first parameter with side effects #2828

Merged
merged 1 commit into from
May 31, 2017
Merged

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented May 26, 2017

PR checklist

Overview of change:

[bugfix] prefer-object-spread: allow constructor, function and method calls and more as first argument to Object.assign
Fixes: #2824
[enhancement] prefer-object-spread: lint more locations where return value is used.

Is there anything you'd like reviewers to focus on?

CHANGELOG.md entry:

… side effects

[bugfix] `prefer-object-spread`:  allow constructor, function and method calls as first argument to `Object.assign`
[enhancement] `prefer-object-spread`: lint more locations where return value is used.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

object spread should not be preferred when Object.assign's first argument is a class instance
2 participants