text: import { JSX_TYPES } from 'eslint-mdx';
  export var noJsxHtmlComments = {
      meta: {
          type: 'problem',
          docs: {
              description: 'Forbid invalid html style comments in jsx block',
              category: 'SyntaxError',
              recommended: true,
          },
          messages: {
              jsxHtmlComments: 'html style comments are invalid in jsx: {{ origin }}',
          },
          fixable: 'code',
      },
      create: function (context) {
          return {
              ExpressionStatement: function (node) {
                  var invalidNodes = 
                  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
                  context.parserServices.JSXElementsWithHTMLComments;
                  if (!JSX_TYPES.includes(node.expression.type) ||
                      node.parent.type !== 'Program' ||
                      !invalidNodes ||
                      invalidNodes.length === 0) {
                      return;
                  }
                  var invalidNode = invalidNodes.shift();
                  if (invalidNode.data.inline) {
                      return;
                  }
                  var comments = invalidNode.data.comments;
                  comments.forEach(function (_a) {
                      var fixed = _a.fixed, loc = _a.loc, origin = _a.origin;
                      return context.report({
                          messageId: 'jsxHtmlComments',
                          data: {
                              origin: origin,
                          },
                          loc: loc,
                          node: node,
                          fix: function (fixer) {
                              return fixer.replaceTextRange([loc.start.offset, loc.end.offset], fixed);
                          },
                      });
                  });
              },
          };
      },
  };
  //# sourceMappingURL=no-jsx-html-comments.js.map