title: Eslint behaves differently between local and CI
body: <p>It seems that eslint behaves different in GitHub actions and in local.
  On local I don't get any errors a part from ts warning which are fine.
  Wheres in the github actions I seems to get more errors related to some rule about file extension. It's like it doesn't find the files... I am pretty new do GitHub actions but I am not sure what is missing from my config.</p>
  <p>CI.yml:</p>
  <pre class="lang-yaml prettyprint-override"><code>name: Continuous Integration
  on:
    pull_request:
      branches: [main]
  jobs:
    lint:
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v2
        - name: Setup Node.js
          uses: actions/setup-node@v1
          with:
            node-version: '15.x'
        - uses: actions/checkout@v2
        - run: git fetch --prune --unshallow
        - name: Get yarn cache
          id: yarn-cache
          run: echo &quot;::set-output name=dir::$(yarn cache dir)&quot;
        - uses: actions/cache@v1
          with:
            path: ${{ steps.yarn-cache.outputs.dir }}
            key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
            restore-keys: |
              ${{ runner.os }}-yarn-
        - name: Install deps
          run: yarn
  
        - name: Lint packages
          run: yarn lint
  </code></pre>
  <p>Package.json:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      ...
      &quot;lint&quot;: &quot;yarn lint:js &amp;&amp; yarn lint:css&quot;,
      ...
    },
    &quot;dependencies&quot;: {
      ...
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;~7.9.0&quot;,
      &quot;@testing-library/jest-native&quot;: &quot;^3.4.3&quot;,
      &quot;@testing-library/react-native&quot;: &quot;^7.1.0&quot;,
      &quot;@types/jest&quot;: &quot;^26.0.20&quot;,
      &quot;@types/react&quot;: &quot;^17.0.1&quot;,
      &quot;@types/react-native&quot;: &quot;^0.63.48&quot;,
      &quot;@types/react-native-fbsdk&quot;: &quot;^3.0.0&quot;,
      &quot;@types/react-native-maps&quot;: &quot;^0.24.0&quot;,
      &quot;@types/react-native-snap-carousel&quot;: &quot;^3.8.2&quot;,
      &quot;@types/react-native-vector-icons&quot;: &quot;^6.4.6&quot;,
      &quot;@types/react-test-renderer&quot;: &quot;^17.0.0&quot;,
      &quot;@types/styled-components&quot;: &quot;^5.1.9&quot;,
      &quot;@types/styled-components-react-native&quot;: &quot;^5.1.1&quot;,
      &quot;@types/uuid&quot;: &quot;^8.3.0&quot;,
      &quot;@types/yup&quot;: &quot;^0.29.11&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^4.20.0&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^4.20.0&quot;,
      &quot;babel-jest&quot;: &quot;~25.2.6&quot;,
      &quot;babel-plugin-styled-components&quot;: &quot;^1.12.0&quot;,
      &quot;eslint&quot;: &quot;^7.19.0&quot;,
      &quot;eslint-config-prettier&quot;: &quot;^7.2.0&quot;,
      &quot;eslint-import-resolver-typescript&quot;: &quot;^2.4.0&quot;,
      &quot;eslint-loader&quot;: &quot;^4.0.2&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.22.1&quot;,
      &quot;eslint-plugin-jest&quot;: &quot;^24.1.5&quot;,
      &quot;eslint-plugin-prettier&quot;: &quot;^3.3.1&quot;,
      &quot;eslint-plugin-react&quot;: &quot;^7.22.0&quot;,
      &quot;eslint-plugin-react-hooks&quot;: &quot;^4.2.0&quot;,
      &quot;eslint-plugin-react-native&quot;: &quot;^3.10.0&quot;,
      &quot;eslint-plugin-sort-destructure-keys&quot;: &quot;^1.3.5&quot;,
      &quot;husky&quot;: &quot;^5.1.3&quot;,
      &quot;jest&quot;: &quot;~25.2.6&quot;,
      &quot;lint-staged&quot;: &quot;^10.5.4&quot;,
      &quot;prettier&quot;: &quot;^2.2.1&quot;,
      &quot;react-test-renderer&quot;: &quot;~16.13.1&quot;,
      &quot;stylelint&quot;: &quot;^13.9.0&quot;,
      &quot;stylelint-config-standard&quot;: &quot;^20.0.0&quot;,
      &quot;stylelint-config-styled-components&quot;: &quot;^0.1.1&quot;,
      &quot;stylelint-processor-styled-components&quot;: &quot;^1.10.0&quot;,
      &quot;typescript&quot;: &quot;^4.1.3&quot;
    },
    &quot;jest&quot;: {
      &quot;preset&quot;: &quot;react-native&quot;
    },
    &quot;private&quot;: true
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/4qNgZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4qNgZ.png" alt="CI error" /></a></p>