Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 285 Bytes

object-shorthand-properties-first.md

File metadata and controls

23 lines (18 loc) · 285 Bytes

object-shorthand-properties-first

By convention and for better readability, shorthand properties should precede regular property declarations.

Not passing:

let obj = {
  foo: foo,
  bar,
  baz: baz,
};

Passing:

let obj = {
  bar,
  foo: foo,
  baz: baz,
};