Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when an open curly brace is not placed at the end of a line of code.

Noncompliant Code Example

if (condition)
{                                                      //Noncompliant
  doSomething();
}

Compliant Solution

if (condition) {                                   //Compliant
  doSomething();
}

Exceptions

Object literals appearing as arguments can start on their own line.

functionWithObject(
   {                                                 //Compliant
        g: "someValue"
   }
);