code: function expectSpaceAfter(token, pattern) {
              const nextToken = sourceCode.getTokenAfter(token);
  
              if (nextToken &&
                  (CHECK_TYPE.test(nextToken.type) || pattern.test(nextToken.value)) &&
                  !isCloseParenOfTemplate(nextToken) &&
                  astUtils.isTokenOnSameLine(token, nextToken) &&
                  !sourceCode.isSpaceBetweenTokens(token, nextToken)
              ) {
                  context.report({
                      loc: token.loc.start,
                      messageId: "expectedAfter",
                      data: token,
                      fix(fixer) {
                          return fixer.insertTextAfter(token, " ");
                      }
                  });
              }
          }
docs: Reports a given token if there are not space(s) after the token.
  
  @param {Token} token - A token to report.
  @param {RegExp} pattern - A pattern of the next token to check.
  @returns {void}