title: Why is @typescript-eslint/parser including files outside of those configured in my tsconfig.json?
body: <p>I am getting the error: -</p>
  <pre><code>Parsing error: &quot;parserOptions.project&quot; has been set for u/typescript-eslint/parser.
  
  The file does not match your project config: .eslintrc.js.
  
  The file must be included in at least one of the projects provided.
  </code></pre>
  <p>IDE - WebStorm 20.1.1</p>
  <p>Project structure: -</p>
  <pre><code>node_modules
  
  src
  
  --- testfile.js
  
  .eslintrc.js
  
  .prettierrc.js
  
  baseeslint.js
  
  package.json
  
  tsconfig.json
  </code></pre>
  <p>.eslintrc.js: -</p>
  <pre><code>module.exports = {
  extends: ['./baseeslint'],
  parserOptions: {
  project: './tsconfig.json'
  },
  rules: {}
  }
  </code></pre>
  <p>baseeslint.js: -</p>
  <pre><code>module.exports = {
  
  parser: '@typescript-eslint/parser'
  
  }
  </code></pre>
  <p>tsconfig.json: -</p>
  <pre><code>{
  
  &quot;include&quot;: [
  
  &quot;/src/**/*.ts&quot;,
  
  &quot;/src/**/*.tsx&quot;
  
  ],
  
  &quot;exclude&quot;: [&quot;node_modules&quot;],
  
  &quot;compilerOptions&quot;: {
  
  &quot;outDir&quot;: &quot;./lib&quot;,
  
  &quot;types&quot;: [&quot;styled-components&quot;, &quot;react&quot;, &quot;@types/react-router-dom&quot;, &quot;reactstrap&quot;]
  
  }
  
  }
  </code></pre>
  <p>I have absolutely no idea why this is happening? I would assume it would ignore files in the root, especially with include specified in my tsconfg.json?</p>
  <p>Any help would be greatly appreciated.</p>
  <p>EDIT: -</p>
  <p>My solution, should it help others...</p>
  <p>I added the ignorePatterns configuration to my .eslintrc.js file: -</p>
  <pre><code>module.exports = {
    extends: [&quot;mycustom/eslint-config&quot;],
    parserOptions: {
      project: './tsconfig.json'
    },
    ignorePatterns: [&quot;/*.*&quot;],
    rules: {}
  }
  </code></pre>
  <p>This can also be done via .eslintignore (see Anton Bessonov's response below).</p>
  <p>Another thing relating to this which maybe of use to others here is the VScode config I used (I switched from WebStorm to VSCode after posting the original question). I am a big fan of running eslint fix on save but I do not want it attempting to do this with all files. My project files (and only my project files) are all .ts/.tsx. The options below in settings.json allow fix on save without it including every file in my repo: -</p>
  <pre><code>{
      &quot;editor.codeActionsOnSave&quot;: {
          &quot;source.fixAll.eslint&quot;: true
      },
      &quot;eslint.probe&quot;: [
          &quot;typescript&quot;,
          &quot;typescriptreact&quot;
      ],
  }
  </code></pre>
  <p>If eslint.probe is not specified, it defaults to: -</p>
  <p><code>[&quot;javascript&quot;, &quot;javascriptreact&quot;, &quot;typescript&quot;, &quot;typescriptreact&quot;, &quot;html&quot;, &quot;vue&quot;]</code></p>
  <p>More about the VSCode ESLint extension settings can be found <a href="https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint" rel="noreferrer">here</a>.</p>