lib/rules/curly.js
function isOneLiner(node) {
            const first = sourceCode.getFirstToken(node),
                last = sourceCode.getLastToken(node);

            return first.loc.start.line === last.loc.end.line;
        }
function isOneLiner(node) {
            const first = sourceCode.getFirstToken(node),
                last = sourceCode.getLastToken(node);

            return first.loc.start.line === last.loc.end.line;
        }
function isOneLiner ( node ) { const first = sourceCode . getFirstToken ( node ) , last = sourceCode . getLastToken ( node ) ; return first . loc . start . line === last . loc . end . line ; }
Determines if a given node is a one-liner.
@param {ASTNode} node The node to check.
@returns {boolean} True if the node is a one-liner.
@private
Determines if a given node is a one - liner .