This can probably be merged with no-duplicate-spread-property to a more general no-duplicate-property rule. Maybe this is already checked, but only on object literals that contain object spread.
Turns out this is in fact already checked by no-duplicate-spread-property for object literals that contain object spread. So this simply needs to check more object literals.
The compiler doesn't emit an error here. See https://github.com/Microsoft/TypeScript/issues/25758
This can probably be merged with
no-duplicate-spread-property
to a more generalno-duplicate-property
rule. Maybe this is already checked, but only on object literals that contain object spread.