title: ESlint - This file does not match your project config
body: <p>I have been getting the following two errors</p>
  <pre class="lang-sh prettyprint-override"><code>.../src/index.ts
    0:0  error  Parsing error: &quot;parserOptions.project&quot; has been set for @typescript-eslint/parser.
  The file does not match your project config: src/index.ts.
  The file must be included in at least one of the projects provided
  
  .../src/loaders/index.ts
    0:0  error  Parsing error: &quot;parserOptions.project&quot; has been set for @typescript-eslint/parser.
  The file does not match your project config: src/loaders/index.ts.
  The file must be included in at least one of the projects provided
  </code></pre>
  <p>My project which is supposed to be used as a library, contains an src and a tests folder.</p>
  <p><code>src/index.ts</code> is my entry file and <code>src/loaders/index.ts</code> is imported via node style module resolution, i.e. <code>import * from './loaders'</code>.</p>
  <p>Here is my <code>.eslintrc</code></p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;parser&quot;: &quot;@typescript-eslint/parser&quot;,
    &quot;extends&quot;: [
      &quot;eslint:recommended&quot;,
      &quot;plugin:@typescript-eslint/recommended&quot;,
      &quot;plugin:jest/style&quot;,
      &quot;plugin:jest/recommended&quot;,
      &quot;prettier&quot;
    ],
    &quot;plugins&quot;: [&quot;@typescript-eslint&quot;],
    &quot;parserOptions&quot;: {
      &quot;project&quot;: &quot;./tsconfig.eslint.json&quot;
    },
    &quot;root&quot;: true,
    &quot;rules&quot;: {
      ...
    }
  }
  </code></pre>
  <p>and here are my tsconfigs
  <code>tsconfig.json</code></p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;es2020&quot;,
      &quot;module&quot;: &quot;commonjs&quot;,
      &quot;allowJs&quot;: true,
      &quot;checkJs&quot;: true,
      &quot;sourceMap&quot;: true,
      &quot;outDir&quot;: &quot;./dist&quot;,
      &quot;strict&quot;: true,
      &quot;noImplicitAny&quot;: true,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;isolatedModules&quot;: true,
      &quot;baseUrl&quot;: &quot;.&quot;,
      &quot;allowSyntheticDefaultImports&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;resolveJsonModule&quot;: true
    },
    &quot;include&quot;: [&quot;src/**/*&quot;]
  }
  
  </code></pre>
  <p>and <code>tsconfig.eslint.json</code></p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;extends&quot;: &quot;./tsconfig.json&quot;,
    &quot;include&quot;: [
      &quot;tests/**/*&quot;
    ]
  }
  </code></pre>