Most Powerful Open Source ERP

Guideline JavaScript Closing Bracket Is At Indent Of Function Call

Consistent coding patterns.
  • Last Update:2017-04-05
  • Version:001
  • Language:en

JavaScript Closing Bracket Is At Indent Of Function Call

The closing brace should be on the same indent as the original function call.

Good Example:

function func() {
  return {
    "name": "Batman"
  };
}

Bad Example:

function func() {
  return {
           "name": "Batman"
         };
}