title: lint-staged custom config > error Command failed with exit code 1
body: <p>I'm following the first example (copy/paste) of custom config file (lint-staged.config.js) for lint-staged packaged from its <a href="https://github.com/okonet/lint-staged" rel="nofollow noreferrer">github README</a> without success. I get <code>error Command failed with exit code 1.</code> always.</p>
  <h2>I tried this...</h2>
  <p>I have tried three things, for each case I had my <code>lint-staged.config.js</code> in the root directory.</p>
  <ol>
  <li>package.json: result is <code>error Command failed with exit code 1.</code></li>
  </ol>
  <pre><code>&quot;lint-staged&quot;: {
          &quot;packages/**/*.{ts,tsx}&quot;: [
              &quot;yarn lint-staged --config ./lint-staged.config.js&quot;
          ]
      },
  </code></pre>
  <ol start="2">
  <li>husky/pre-commit: result is <code>error Command failed with exit code 1.</code></li>
  </ol>
  <pre><code>npx lint-staged --config ../lint-staged.config.js
  </code></pre>
  <ol start="3">
  <li>cmd line: result is <code>error Command failed with exit code 1.</code></li>
  </ol>
  <pre><code>yarn lint-staged --config lint-staged.config.js
  </code></pre>
  <h2>The problem</h2>
  <p>Im just looking for run a custom config file.</p>
  <p>The problem is that the execution fails, the error message its related to the command but the command itself its correct as <code>lint-staged [options]</code> (yarn/npx lint-staged -h) then to provide a custom config file it would as <code>lint-staged [--config [path]]</code> but it fails (I even provide all kind of quotes for path).</p>