lib/rules/vars-on-top.js
function looksLikeImport(node) {
            return node.type === "ImportDeclaration" || node.type === "ImportSpecifier" ||
                node.type === "ImportDefaultSpecifier" || node.type === "ImportNamespaceSpecifier";
        }
function looksLikeImport(node) {
            return node.type === "ImportDeclaration" || node.type === "ImportSpecifier" ||
                node.type === "ImportDefaultSpecifier" || node.type === "ImportNamespaceSpecifier";
        }
function looksLikeImport ( node ) { return node . type === "ImportDeclaration" || node . type === "ImportSpecifier" || node . type === "ImportDefaultSpecifier" || node . type === "ImportNamespaceSpecifier" ; }
Check to see if its a ES6 import declaration
@param {ASTNode} node - any node
@returns {boolean} whether the given node represents a import declaration
Check to see if its a ES6 import declaration