lib/rules/space-infix-ops.js
function checkVar(node) {
            const leftNode = (node.id.typeAnnotation) ? node.id.typeAnnotation : node.id;
            const rightNode = node.init;

            if (rightNode) {
                const nonSpacedNode = getFirstNonSpacedToken(leftNode, rightNode, "=");

                if (nonSpacedNode) {
                    report(node, nonSpacedNode);
                }
            }
        }
function checkVar(node) {
            const leftNode = (node.id.typeAnnotation) ? node.id.typeAnnotation : node.id;
            const rightNode = node.init;

            if (rightNode) {
                const nonSpacedNode = getFirstNonSpacedToken(leftNode, rightNode, "=");

                if (nonSpacedNode) {
                    report(node, nonSpacedNode);
                }
            }
        }
function checkVar ( node ) { const leftNode = ( node . id . typeAnnotation ) ? node . id . typeAnnotation : node . id ; const rightNode = node . init ; if ( rightNode ) { const nonSpacedNode = getFirstNonSpacedToken ( leftNode , rightNode , "=" ) ; if ( nonSpacedNode ) { report ( node , nonSpacedNode ) ; } } }
Check if the node is a variable
@param {ASTNode} node node to evaluate
@returns {void}
@private
Check if the node is a variable