requireEnhancedObjectLiterals

Requires declaring objects via ES6 enhanced object literals

Type: Boolean

Values: true

Version: ES6

Example

"requireEnhancedObjectLiterals": true
Valid
var bar = true;
var obj = {
  foo() { },
  bar
};
Invalid
var bar = true;
var obj = {
  foo: function() { },
  bar: bar
};
Rule source
Test source