lib/rules/keyword-spacing.js
function checkSpacingForForOfStatement(node) {
            if (node.await) {
                checkSpacingBefore(sourceCode.getFirstToken(node, 0));
                checkSpacingAfter(sourceCode.getFirstToken(node, 1));
            } else {
                checkSpacingAroundFirstToken(node);
            }
            checkSpacingAround(sourceCode.getTokenBefore(node.right, astUtils.isNotOpeningParenToken));
        }
function checkSpacingForForOfStatement(node) {
            if (node.await) {
                checkSpacingBefore(sourceCode.getFirstToken(node, 0));
                checkSpacingAfter(sourceCode.getFirstToken(node, 1));
            } else {
                checkSpacingAroundFirstToken(node);
            }
            checkSpacingAround(sourceCode.getTokenBefore(node.right, astUtils.isNotOpeningParenToken));
        }
function checkSpacingForForOfStatement ( node ) { if ( node . await ) { checkSpacingBefore ( sourceCode . getFirstToken ( node , 0 ) ) ; checkSpacingAfter ( sourceCode . getFirstToken ( node , 1 ) ) ; } else { checkSpacingAroundFirstToken ( node ) ; } checkSpacingAround ( sourceCode . getTokenBefore ( node . right , astUtils . isNotOpeningParenToken ) ) ; }
Reports `for` and `of` keywords of a given node if usage of spacing
around those keywords is invalid.

@param {ASTNode} node - A node to report.
@returns {void}
Reports for and of keywords of a given node if usage of spacing around those keywords is invalid .