title: error: Expected an identifier and instead saw '<'
body: <p>In my eslint validation when I am trying to pass the eslint check I am getting this error: Expected an identifier and instead saw '&lt;'. This is causing in my line 1 and 2 also. My code is given below, please can anyone help me,</p>
  <pre><code>&lt;body&gt;
  &lt;script&gt;
  let callback = function(mutationsList, observer) {
    for (let mutation of mutationsList) {
      let [added] = mutation.addedNodes;
      if (added instanceof HTMLIFrameElement &amp;&amp; added.id == &quot;firefox-screenshots-preview-iframe&quot;) {
        added.srcdoc = &quot;&lt;html&gt;&lt;/html&gt;&quot;;
        // Now we have to wait for the doc to be populated.
        let interval = setInterval(() =&gt; {
          console.log(added.contentDocument.innerHTML);
          if (added.contentDocument.body.innerHTML) {
            clearInterval(interval);
            window.responseHandler(added.contentDocument.body.innerHTML);
          }
        }, 100);
        observer.disconnect();
      }
    }
  };
  
  observer = new MutationObserver(callback);
  observer.observe(document.body, {childList: true});
  &lt;/script&gt;
  &lt;/body&gt; 
  </code></pre>