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.
if (condition)
{ //Noncompliant
doSomething();
}
if (condition) { //Compliant
doSomething();
}
Object literals appearing as arguments can start on their own line.
functionWithObject(
{ //Compliant
g: "someValue"
}
);