requireSpaceBeforeDestructuredValues

Require space after colon in object destructuring.

Type: Boolean

Value: true

Version: ES6

Example

"requireSpaceBeforeDestructuredValues": true
Valid
const { foo: objectsFoo } = SomeObject;
Invalid
const { foo:objectsFoo } = SomeObject;
Valid
const { [ { foo: objectsFoo } ] } = SomeObject;
Invalid
const { [ { foo:objectsFoo } ] } = SomeObject;
Rule source
Test source