Rule: prefer-object-spread
Enforces the use of the ES2018 object spread operator over Object.assign()
where appropriate.
Rationale
Object spread allows for better type checking and inference.
Notes:
Has Fixer
Config
Not configurable.
Config examples
"prefer-object-spread": true
Schema
null