title: @typescript-eslint/no-unused-vars does not work correctly
body: <p>After <code>@typescript-eslint</code> upgrade es-lint started throwing the following lint errors:</p>
  <pre><code>28:15  error  'token' is defined but never used          @typescript-eslint/no-unused-vars`
  </code></pre>
  <p>In source code:</p>
  <pre><code>   23 interface IInterface {
     ...
  &gt;&gt; 27   func1: (token: string) =&gt; void
  &gt;&gt; 28   fun2: (token: string | null) =&gt; void
     29 }
  
  It looks like started linting typescript interfaces not code.
  </code></pre>
  <p><code>eslintrc.js</code>:</p>
  <pre><code>module.exports = {
    env: {
      browser: true,
      es6: true,
      node: true,
    },
    extends: [
      'airbnb-typescript',
      'airbnb/hooks',
      'plugin:@typescript-eslint/eslint-recommended',
      'plugin:@typescript-eslint/recommended',
      'plugin:@typescript-eslint/recommended-requiring-type-checking',
      'prettier',
      'airbnb-typescript-prettier',
    ],
    globals: {
      Atomics: 'readonly',
      SharedArrayBuffer: 'readonly',
    },
    parser: '@typescript-eslint/parser',
    parserOptions: {
      ecmaFeatures: {
        jsx: true,
      },
      ecmaVersion: 2018,
      sourceType: 'module',
      project: './tsconfig.json',
    },
    plugins: ['react', '@typescript-eslint', 'eslint-plugin-no-inline-styles'],
    rules: {
      'no-console': ['error', { allow: ['error'] }],
      'no-underscore-dangle': ['error', { allow: ['__typename'] }],
      'object-curly-newline': 0,
      'max-len': ['error', { code: 120, ignorePattern: '^import|d=&quot;' }],
      'no-inline-styles/no-inline-styles': 2,
      'import/prefer-default-export': 'off',
      'import/no-unresolved': 0,
      'import/no-extraneous-dependencies': 0,
      'react/no-did-update-set-state': 1,
      'react/jsx-props-no-spreading': 1,
      'react/jsx-no-bind': [
        'error',
        {
          allowArrowFunctions: false,
          ignoreRefs: true,
        },
      ],
      'react/state-in-constructor': 0,
      'react/prop-types': 0,
      'react/destructuring-assignment': 0,
      'react-hooks/exhaustive-deps': 0,
      'react/jsx-filename-extension': [2, { extensions: ['.tsx'] }],
      'jsx-a11y/label-has-associated-control': 0,
      'jsx-a11y/anchor-is-valid': 0,
      'jsx-a11y/click-events-have-key-events': 0,
      'jsx-a11y/no-static-element-interactions': 0,
      '@typescript-eslint/no-unnecessary-type-assertion': 0,
      '@typescript-eslint/no-misused-promises': 0,
      '@typescript-eslint/require-await': 'off',
      '@typescript-eslint/explicit-function-return-type': 0,
      '@typescript-eslint/member-delimiter-style': 0,
      '@typescript-eslint/semi': ['error', 'never'],
      '@typescript-eslint/no-non-null-assertion': ['error'],
      '@typescript-eslint/interface-name-prefix': ['error', { prefixWithI: 'always', allowUnderscorePrefix: false }],
    },
    globals: {
      Cypress: 'readonly',
      describe: 'readonly',
      it: 'readonly',
      before: 'readonly',
      beforeEach: 'readonly',
      assert: 'readonly',
      cy: 'readonly',
      expect: 'readonly',
    },
    settings: {
      react: {
        pragma: 'React',
        version: 'detect',
      },
    },
  }
  </code></pre>
  <p><code>package.json</code>:</p>
  <pre><code>    {
        &quot;name&quot;: &quot;project&quot;,
        &quot;version&quot;: &quot;1.0.0&quot;,
        &quot;main&quot;: &quot;index.js&quot;,
        &quot;license&quot;: &quot;MIT&quot;,
        &quot;scripts&quot;: {
          ...
          &quot;test:lint&quot;: &quot;eslint . --ext .tsx,.ts&quot;,
          &quot;test:lint-quiet&quot;: &quot;eslint . --ext .tsx,.ts --quiet&quot;,
          &quot;test:lint-fix&quot;: &quot;eslint . --ext .tsx,.ts --fix&quot;,
        },
        &quot;devDependencies&quot;: {
          &quot;@babel/core&quot;: &quot;^7.10.5&quot;,
          &quot;@cypress/webpack-preprocessor&quot;: &quot;^5.4.1&quot;,
          &quot;@graphql-codegen/cli&quot;: &quot;^1.8.3&quot;,
          &quot;@graphql-codegen/fragment-matcher&quot;: &quot;^1.8.3&quot;,
          &quot;@percy/cypress&quot;: &quot;^2.3.3&quot;,
          &quot;@storybook/addon-actions&quot;: &quot;6.1.15&quot;,
          &quot;@storybook/addon-links&quot;: &quot;6.1.15&quot;,
          &quot;@storybook/addon-storysource&quot;: &quot;6.1.15&quot;,
          &quot;@storybook/addon-viewport&quot;: &quot;6.1.15&quot;,
          &quot;@storybook/addons&quot;: &quot;6.1.15&quot;,
          &quot;@storybook/preset-ant-design&quot;: &quot;^0.0.1&quot;,
          &quot;@storybook/preset-typescript&quot;: &quot;^3.0.0&quot;,
          &quot;@storybook/react&quot;: &quot;^6.1.15&quot;,
          &quot;@types/apollo-upload-client&quot;: &quot;^8.1.1&quot;,
          &quot;@types/classnames&quot;: &quot;^2.2.7&quot;,
          &quot;@types/history&quot;: &quot;^4.7.2&quot;,
          &quot;@types/lodash&quot;: &quot;^4.14.126&quot;,
          &quot;@types/node&quot;: &quot;^12.0.0&quot;,
          &quot;@types/react&quot;: &quot;^16.8.17&quot;,
          &quot;@types/react-dom&quot;: &quot;^16.8.4&quot;,
          &quot;@types/react-router&quot;: &quot;^5.0.0&quot;,
          &quot;@types/react-sortable-hoc&quot;: &quot;^0.6.5&quot;,
          &quot;@types/react-virtualized&quot;: &quot;^9.21.1&quot;,
          &quot;@types/webpack&quot;: &quot;^4.4.31&quot;,
          &quot;@types/webpack-env&quot;: &quot;1.13.9&quot;,
          &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^2.26.0&quot;,
          &quot;@typescript-eslint/parser&quot;: &quot;^4.15.0&quot;,
          &quot;add&quot;: &quot;^2.0.6&quot;,
          &quot;apollo&quot;: &quot;^2.27.4&quot;,
          &quot;babel-loader&quot;: &quot;^8.1.0&quot;,
          &quot;case-sensitive-paths-webpack-plugin&quot;: &quot;^2.2.0&quot;,
          &quot;copy-webpack-plugin&quot;: &quot;^5.0.4&quot;,
          &quot;css-loader&quot;: &quot;^2.1.1&quot;,
          &quot;cypress-cucumber-preprocessor&quot;: &quot;^2.0.1&quot;,
          &quot;cypress-file-upload&quot;: &quot;^4.1.1&quot;,
          &quot;dotenv&quot;: &quot;^8.0.0&quot;,
          &quot;eslint&quot;: &quot;^7.19.0&quot;,
          &quot;eslint-config-airbnb-typescript&quot;: &quot;^7.2.0&quot;,
          &quot;eslint-config-airbnb-typescript-prettier&quot;: &quot;^2.1.1&quot;,
          &quot;eslint-plugin-import&quot;: &quot;^2.20.2&quot;,
          &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.2.3&quot;,
          &quot;eslint-plugin-no-inline-styles&quot;: &quot;^1.0.5&quot;,
          &quot;eslint-plugin-prettier&quot;: &quot;^3.1.2&quot;,
          &quot;eslint-plugin-react&quot;: &quot;^7.19.0&quot;,
          &quot;eslint-plugin-react-hooks&quot;: &quot;^3.0.0&quot;,
          &quot;file-loader&quot;: &quot;^3.0.1&quot;,
          &quot;fork-ts-checker-webpack-plugin&quot;: &quot;^1.3.2&quot;,
          &quot;html-loader&quot;: &quot;^1.0.0-alpha.0&quot;,
          &quot;html-webpack-plugin&quot;: &quot;^4.0.0-alpha&quot;,
          &quot;husky&quot;: &quot;^2.2.0&quot;,
          &quot;lerna&quot;: &quot;^3.15.0&quot;,
          &quot;less&quot;: &quot;^3.9.0&quot;,
          &quot;less-loader&quot;: &quot;^5.0.0&quot;,
          &quot;lint-staged&quot;: &quot;^8.1.6&quot;,
          &quot;mini-css-extract-plugin&quot;: &quot;^0.6.0&quot;,
          &quot;optimize-css-assets-webpack-plugin&quot;: &quot;^5.0.1&quot;,
          &quot;postcss&quot;: &quot;^7.0.16&quot;,
          &quot;postcss-apply&quot;: &quot;^0.12.0&quot;,
          &quot;postcss-browser-reporter&quot;: &quot;^0.6.0&quot;,
          &quot;postcss-import&quot;: &quot;^12.0.1&quot;,
          &quot;postcss-loader&quot;: &quot;^3.0.0&quot;,
          &quot;postcss-preset-env&quot;: &quot;^6.6.0&quot;,
          &quot;postcss-reporter&quot;: &quot;^6.0.1&quot;,
          &quot;postcss-url&quot;: &quot;^8.0.0&quot;,
          &quot;prettier&quot;: &quot;^2.0.5&quot;,
          &quot;style-loader&quot;: &quot;^0.23.1&quot;,
          &quot;terser-webpack-plugin&quot;: &quot;^1.2.3&quot;,
          &quot;ts-import-plugin&quot;: &quot;^1.6.5&quot;,
          &quot;ts-loader&quot;: &quot;^6.2.1&quot;,
          &quot;typescript&quot;: &quot;^4.1.4&quot;,
          &quot;url-loader&quot;: &quot;^1.1.2&quot;,
          &quot;webpack&quot;: &quot;^4.43.0&quot;,
          &quot;webpack-cleanup-plugin&quot;: &quot;^0.5.1&quot;,
          &quot;webpack-cli&quot;: &quot;^3.3.11&quot;,
          &quot;webpack-dev-server&quot;: &quot;^3.11.0&quot;,
          &quot;yarn&quot;: &quot;^1.19.1&quot;
        },
        &quot;dependencies&quot;: {
          &quot;@ant-design/compatible&quot;: &quot;^1.0.5&quot;,
          &quot;@ant-design/icons&quot;: &quot;^4.2.2&quot;,
          &quot;@sentry/browser&quot;: &quot;^5.6.3&quot;,
          &quot;@types/chart.js&quot;: &quot;^2.9.25&quot;,
          &quot;@types/moment-timezone&quot;: &quot;^0.5.13&quot;,
          &quot;@types/react-image-crop&quot;: &quot;^8.1.2&quot;,
          &quot;@types/react-responsive&quot;: &quot;^8.0.2&quot;,
          &quot;@types/react-router-dom&quot;: &quot;^5.1.0&quot;,
          &quot;@types/styled-components&quot;: &quot;^5.1.2&quot;,
          &quot;antd&quot;: &quot;^4.6.1&quot;,
          &quot;apollo-boost&quot;: &quot;^0.4.9&quot;,
          &quot;apollo-upload-client&quot;: &quot;^10.0.1&quot;,
          &quot;array-move&quot;: &quot;^3.0.1&quot;,
          &quot;axios&quot;: &quot;^0.18.0&quot;,
          &quot;chart.js&quot;: &quot;^2.9.3&quot;,
          &quot;classnames&quot;: &quot;^2.2.6&quot;,
          &quot;copy-to-clipboard&quot;: &quot;^3.2.0&quot;,
          &quot;create-file-webpack&quot;: &quot;^1.0.2&quot;,
          &quot;csstype&quot;: &quot;^3.0.3&quot;,
          &quot;cypress&quot;: &quot;^5.0.0&quot;,
          &quot;flag-icon-css&quot;: &quot;^3.5.0&quot;,
          &quot;graphql&quot;: &quot;^14.5.8&quot;,
          &quot;graphql-tag&quot;: &quot;^2.10.3&quot;,
          &quot;ibantools&quot;: &quot;^3.0.0&quot;,
          &quot;lodash&quot;: &quot;^4.17.11&quot;,
          &quot;moment&quot;: &quot;^2.27.0&quot;,
          &quot;moment-timezone&quot;: &quot;^0.5.26&quot;,
          &quot;react&quot;: &quot;^16.13.1&quot;,
          &quot;react-apollo-hooks&quot;: &quot;^0.4.5&quot;,
          &quot;react-dom&quot;: &quot;^16.13.1&quot;,
          &quot;react-ga&quot;: &quot;^2.6.0&quot;,
          &quot;react-hooks-global-state&quot;: &quot;^0.14.0&quot;,
          &quot;react-image-crop&quot;: &quot;^8.5.0&quot;,
          &quot;react-json-view&quot;: &quot;^1.19.1&quot;,
          &quot;react-responsive&quot;: &quot;^8.1.0&quot;,
          &quot;react-router-dom&quot;: &quot;^5.2.0&quot;,
          &quot;react-sortable-hoc&quot;: &quot;^1.11.0&quot;,
          &quot;react-sticky-box&quot;: &quot;^0.8.0&quot;,
          &quot;react-virtualized&quot;: &quot;^9.21.2&quot;,
          &quot;styled-components&quot;: &quot;^5.1.1&quot;,
          &quot;use-debounce&quot;: &quot;^2.0.0&quot;
        },
        &quot;husky&quot;: {
          &quot;hooks&quot;: {
            &quot;pre-commit&quot;: &quot;yarn test:lint &amp;&amp; lint-staged &amp;&amp; yarn test:compile&quot;,
            &quot;pre-push&quot;: &quot;yarn cypress:run&quot;
          }
        },
        &quot;lint-staged&quot;: {
          &quot;*.{js,ts,tsx,css}&quot;: [
            &quot;prettier --write&quot;,
            &quot;git add&quot;
          ]
        }
      }
  
  </code></pre>