_loop=function _loop(i){var lastTokenOfPreviousProperty=sourceCode.getLastToken(node.properties[i-1]);var firstTokenOfCurrentProperty=sourceCode.getFirstToken(node.properties[i]);if(lastTokenOfPreviousProperty.loc.end.line===firstTokenOfCurrentProperty.loc.start.line){context.report({node:node,loc:firstTokenOfCurrentProperty.loc.start,message:errorMessage,fix:function fix(fixer){var comma=sourceCode.getTokenBefore(firstTokenOfCurrentProperty);var rangeAfterComma=[comma.range[1],firstTokenOfCurrentProperty.range[0]];// Don't perform a fix if there are any comments between the comma and the next property.
if(sourceCode.text.slice(rangeAfterComma[0],rangeAfterComma[1]).trim()){return null;}return fixer.replaceTextRange(rangeAfterComma,"\n");}});}}
@fileoverview Rule to enforce placing object properties on separate lines.
@author Vitor Balocco