title: tsconfig's path parameter and ESLint
body: <p>I've been setting up the <code>paths</code> option in my <code>tsconfig.json</code> file. So far everything works fine. I can run my tests, and I can execute the program as usual. My only problem is, that ESLint does not find the modules that are accessed with one of the paths defined in <code>tsconfig.json</code>.</p>
  
  <p>Here are all of the files that are related to the problem:</p>
  
  <p>tsconfig.json:</p>
  
  <pre><code>{
      "compilerOptions": {
          "target": "es6",
          "module": "commonjs",
          "allowJs": true,
          "sourceMap": true,
          "outDir": "./dist",
          "rootDir": "./",
          "strict": true,
          "esModuleInterop": true,
          "declaration": true,
          "resolveJsonModule": true,
          "baseUrl": ".",
          "paths": {
              "@/*": ["./src/*"]
          }
      },
      "include": ["src/**/*", "test/**/*", "index.ts"]
  }
  </code></pre>
  
  <p>tsconfig.eslint.json:</p>
  
  <pre><code>{
      "extends": "./tsconfig.json",
      "include": ["src/**/*", "test/**/*", "index.ts", ".eslintrc.js"]
  }
  </code></pre>
  
  <p>.eslintrc.js:</p>
  
  <pre class="lang-js prettyprint-override"><code>{
      root: true,
      env: {
          browser: true,
          es6: true,
          node: true
      },
      extends: ['plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking'],
      parser: '@typescript-eslint/parser',
      parserOptions: {
          project: ['tsconfig.eslint.json'],
          sourceType: 'module'
      },
      settings: {
          'import/resolver': {
              typescript: {}
          }
      },
      plugins: ['@typescript-eslint', 'import', 'prefer-arrow'],
      rules: {...}
  }
  </code></pre>
  
  <p>Am am using the package <a href="https://www.npmjs.com/package/eslint-import-resolver-typescript" rel="noreferrer">eslint-import-resolver-typescript</a>.</p>
  
  <p>Now, if I try to import the file './src/test.ts' into './index.ts' with the path '@/test', then ESLint will not be able to resolve that import (although TypeScript resolves it just fine).</p>
  
  <p>I've mostly copied my current solution from <a href="https://github.com/benmosher/eslint-plugin-import/issues/1485" rel="noreferrer">here</a>, because I thought the person who asked that problem had the same problem that I had, but my setup still does not work.</p>
  
  <p>I am in an NodeJS environment by the way.</p>
  
  <p>EDIT:
  I've also tried using the package <a href="https://www.npmjs.com/package/eslint-import-resolver-alias" rel="noreferrer">eslint-import-resolver-alias</a>. This only helped partially. I could get rid of the 'import/no-unresolved' errors, but whenever I call an imported function, I get '@typescript-eslint/no-unsafe-call' because apparently, ESLint does not find the types for the imported files and thusly gives everything the type <code>any</code>.</p>