Rule: prefer-object-spread

Enforces the use of the ES2015 object spread operator over Object.assign() where appropriate.

Rationale

Object spread allows for better type checking and inference.

Notes:
Has Fixer

Config

Not configurable.

Examples
"prefer-object-spread": true
Schema
null