lib/rules/no-unexpected-multiline.js
function checkForBreakAfter(node, messageId) {
            const openParen = sourceCode.getTokenAfter(node, astUtils.isNotClosingParenToken);
            const nodeExpressionEnd = sourceCode.getTokenBefore(openParen);

            if (openParen.loc.start.line !== nodeExpressionEnd.loc.end.line) {
                context.report({ node, loc: openParen.loc.start, messageId, data: { char: openParen.value } });
            }
        }
function checkForBreakAfter(node, messageId) {
            const openParen = sourceCode.getTokenAfter(node, astUtils.isNotClosingParenToken);
            const nodeExpressionEnd = sourceCode.getTokenBefore(openParen);

            if (openParen.loc.start.line !== nodeExpressionEnd.loc.end.line) {
                context.report({ node, loc: openParen.loc.start, messageId, data: { char: openParen.value } });
            }
        }
function checkForBreakAfter ( node , messageId ) { const openParen = sourceCode . getTokenAfter ( node , astUtils . isNotClosingParenToken ) ; const nodeExpressionEnd = sourceCode . getTokenBefore ( openParen ) ; if ( openParen . loc . start . line !== nodeExpressionEnd . loc . end . line ) { context . report ( { node , loc : openParen . loc . start , messageId , data : { char : openParen . value } } ) ; } }
Check to see if there is a newline between the node and the following open bracket
line's expression
@param {ASTNode} node The node to check.
@param {string} messageId The error messageId to use.
@returns {void}
@private
Check to see if there is a newline between the node and the following open bracket line s expression