Disallows identical destructuring names for the key and value in favor of using shorthand destructuring.

Type: Boolean

Value: true


"disallowIdenticalDestructuringNames": true
Valid for mode true
var {left, top} = obj; // shorthand
var {left, top: topper} = obj; // different identifier
let { [key]: key } = obj; // computed property
Invalid for mode true
var {left: left, top: top} = obj;
Rule source
Test source