title: TypeError: this.cliEngineCtor is not a constructor
body: <p>I'm running a react app using a yarn package manager.  I'm getting the aforementioned ESLint error.  I have tried the following to fix it:</p>
  <ol>
  <li>Deleted package-lock.json and node modules and installed yarn and ran yarn init</li>
  <li>Modified the eslint-plugin.js file to include the following at the top of the file:</li>
  </ol>
  <blockquote>
  <p>I used both of these at different times to no avail:</p>
  </blockquote>
  <pre><code>   this.CliEngineCtor = require(this.basicPath).CLIEngine;
     this.CliEngineCtor = require(this.basicPath).CLIEngineCtor;
  </code></pre>
  <p>Pertinent package.json entry:</p>
  <pre><code>{
    &quot;name&quot;: &quot;react-millionaire-quiz&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.16.1&quot;,
      &quot;@testing-library/react&quot;: &quot;^12.1.2&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^13.5.0&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;react-dom&quot;: &quot;^17.0.2&quot;,
      &quot;react-scripts&quot;: &quot;^5.0.0&quot;,
      &quot;web-vitals&quot;: &quot;^2.1.3&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: [
        &quot;react-app&quot;,
        &quot;react-app/jest&quot;
      ]
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {
      &quot;eslint&quot;: &quot;^8.7.0&quot;
    },
  </code></pre>
  <p>I tried changing the eslint to lower versions, but that just created other problems breaking other dependencies and creating other errors.</p>
  <p>How can this be fixed, or do I have to disable ESLint?</p>