Grouping all the shorthand declarations together in an object makes the declaration as a whole more readable. This rule accepts shorthand declarations grouped at either the beginning or end of an object.


== Noncompliant Code Example

[source,javascript]
----
let obj1 = {
  foo,
  a: 1,
  color,  // Noncompliant
  b: 2,
  judyGarland  // Noncompliant
}
----


== Compliant Solution

[source,javascript]
----
let obj1 = {
  foo,
  color,
  judyGarland,
  a: 1,
  b: 2
}
----
or 

[source,javascript]
----
let obj1 = {
  a: 1,
  b: 2,
  foo,
  color,
  judyGarland
}
----



ifdef::env-github,rspecator-view[]

'''
== Implementation Specification
(visible only on this page)

include::message.adoc[]

include::highlighting.adoc[]

'''
== Comments And Links
(visible only on this page)

include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]
