lib/rules/vars-on-top.js
function globalVarCheck(node, parent) {
            if (!isVarOnTop(node, parent.body)) {
                context.report({ node, messageId: "top" });
            }
        }
function globalVarCheck(node, parent) {
            if (!isVarOnTop(node, parent.body)) {
                context.report({ node, messageId: "top" });
            }
        }
function globalVarCheck ( node , parent ) { if ( ! isVarOnTop ( node , parent . body ) ) { context . report ( { node , messageId : "top" } ) ; } }
Checks whether variable is on top at the global level
@param {ASTNode} node - The node to check
@param {ASTNode} parent - Parent of the node
@returns {void}
Checks whether variable is on top at the global level