menu
object-shorthand
Require object property shorthand where equivalent
{ value: value } repeats one name for the object key and its referenced binding and is equivalent to { value }.
Instead, you SHOULD use property shorthand.
Reported
1function point(x: int32): { x: int32 } {2 return { x: x };3}Accepted
1function point(x: int32): { x: int32 } {2 return { x };3}