requireObjectDestructuring

Requires variable declarations from objects via destructuring

Type: Boolean

Value: true

Version: ES6

Example

"requireObjectDestructuring": true
Valid
var { foo } = SomeThing;
var { bar } = SomeThing.foo;
var { val } = SomeThing['some.key'];
Invalid
var foo = SomeThing.foo;
var bar = SomeThing.foo.bar;
var val = SomeThing['some.key'].val;
Rule source
Test source