lib/rules/array-type.js
function requireWhitespaceBefore(node) {
            const prevToken = sourceCode.getTokenBefore(node);

            if (node.range[0] - prevToken.range[1] > 0) {
                return false;
            }

            return prevToken.type === "Identifier";
        }
function requireWhitespaceBefore(node) {
            const prevToken = sourceCode.getTokenBefore(node);

            if (node.range[0] - prevToken.range[1] > 0) {
                return false;
            }

            return prevToken.type === "Identifier";
        }
function requireWhitespaceBefore ( node ) { const prevToken = sourceCode . getTokenBefore ( node ) ; if ( node . range [ 0 ] - prevToken . range [ 1 ] > 0 ) { return false ; } return prevToken . type === "Identifier" ; }
Check if whitespace is needed before this node
@param {ASTNode} node the node to be evaluated.
@returns {boolean} true of false
Check if whitespace is needed before this node