Skip to content

Objects Are Cool Kids TOO

Choose a tag to compare

@rwjblue rwjblue released this 25 Apr 12:49
· 160 commits to master since this release

This release adds a new rule to ensure usage of the enhanced object literal syntax in ES2015.

A few examples:

// bad
let foo = {
 bar: bar
};

// good
let foo = {
  bar
};

// bad
let foo = {
  bar: function(first, second) { }
};

// good
let foo = {
  bar(first, second) { }
}