code: function checkSpacing(kind, side, leftToken, rightToken) {
              if (!!(rightToken.range[0] - leftToken.range[1]) !== modes[kind][side]) {
                  const after = leftToken.value === "*";
                  const spaceRequired = modes[kind][side];
                  const node = after ? leftToken : rightToken;
                  const messageId = `${spaceRequired ? "missing" : "unexpected"}${capitalize(side)}`;
  
                  context.report({
                      node,
                      messageId,
                      fix(fixer) {
                          if (spaceRequired) {
                              if (after) {
                                  return fixer.insertTextAfter(node, " ");
                              }
                              return fixer.insertTextBefore(node, " ");
                          }
                          return fixer.removeRange([leftToken.range[1], rightToken.range[0]]);
                      }
                  });
              }
          }
docs: Checks the spacing between two tokens before or after the star token.
  
  @param {string} kind Either "named", "anonymous", or "method"
  @param {string} side Either "before" or "after".
  @param {Token} leftToken `function` keyword token if side is "before", or
  star token if side is "after".
  @param {Token} rightToken Star token if side is "before", or identifier
  token if side is "after".
  @returns {void}