title: Running `lint-staged` takes a lot of time even for a single changed file
body: <p>Running <code>npm run pre-commit</code> takes a lot of time even if only one file has been changed.</p>
  <p>package.json script:
  <code>&quot;pre-commit&quot;: &quot;lint-staged&quot;,</code></p>
  <p>and lint-staged commands:</p>
  <pre><code>  &quot;lint-staged&quot;: {
      &quot;src/**/*.{ts,js,json}&quot;: [
        &quot;eslint \&quot;{src,apps,libs,test}/**/*.ts\&quot; --fix&quot;
      ],
      &quot;src/**/*.{js,ts,json}&quot;: [
        &quot;prettier --write \&quot;src/**/*.ts\&quot; \&quot;test/**/*.ts\&quot;&quot;
      ]
    },
  </code></pre>
  <p>It feels like eslint runs in the entire project
  How can I make it run only in the changed files?</p>