Sharing some coding conventions is a key point to make it possible for a team to efficiently collaborate. This rule makes it mandatory to place open curly braces at the end of lines of code.
if (condition)
{ //Noncompliant
doSomething();
}
if (condition) { //Compliant
doSomething();
}
Object literals appearing as arguments can start on their own line.
functionWithObject(
{ //Compliant
g: "someValue"
}
);