lib/rules/keyword-spacing.js
function checkSpacingAroundTokenBefore(node) {
            if (node) {
                const token = sourceCode.getTokenBefore(node, astUtils.isKeywordToken);

                checkSpacingAround(token);
            }
        }
function checkSpacingAroundTokenBefore(node) {
            if (node) {
                const token = sourceCode.getTokenBefore(node, astUtils.isKeywordToken);

                checkSpacingAround(token);
            }
        }
function checkSpacingAroundTokenBefore ( node ) { if ( node ) { const token = sourceCode . getTokenBefore ( node , astUtils . isKeywordToken ) ; checkSpacingAround ( token ) ; } }
Reports the previous token of a given node if the token is a keyword and
usage of spacing around the token is invalid.

@param {ASTNode|null} node - A node to report.
@returns {void}
Reports the previous token of a given node if the token is a keyword and usage of spacing around the token is invalid .