title: How to run "stylelint --fix" with husky and lint-staged without blocking the commit
body: <p>I'm using husky and lint-staged to run &quot;stylelint --fix&quot; on my sass files with this configuration</p>
  <pre><code>&quot;husky&quot;: {
      &quot;hooks&quot;: {
          &quot;pre-commit&quot;: &quot;lint-staged&quot;,
          &quot;post-commit&quot;: &quot;git update-index --again&quot;
      }
  },
  &quot;lint-staged&quot;: {
      &quot;resources/sass/*.scss&quot;: [
          &quot;stylelint --fix&quot;,
          &quot;git add&quot;
      ]
  }
  </code></pre>
  <p>and PhpStorm blocks my commit telling me this:</p>
  <p><code>Commit failed with error, 0 file committed, 4 files failed to commit: test lintstaged husky &gt; pre-commit (node v12.18.4) ⚠ Some of your tasks use `git add` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index. [STARTED] Preparing... [SUCCESS] Preparing... [STARTED] Running tasks... [STARTED] Running tasks for resources/sass/*.scss [STARTED] stylelint --fix [FAILED] stylelint --fix [FAILED] [FAILED] stylelint --fix [FAILED] [SUCCESS] Running tasks... [STARTED] Applying modifications... [SKIPPED] Skipped because of errors from tasks. [STARTED] Reverting to original state because of errors... [SUCCESS] Reverting to original state because of errors... [STARTED] Cleaning up... [SUCCESS] Cleaning up... ✖ stylelint --fix: resources/sass/_custom.scss 614:1 ✖ Unexpected duplicate selector &quot;body&quot;, first used at line 116 no-duplicate-selectors 974:11 ✖ Unexpected unknown type selector &quot;readonly&quot; selector-type-no-unknown 988:1 ✖ Unexpected duplicate selector &quot;body&quot;, first used at line 116 no-duplicate-selectors 1313:1 ✖ Unexpected duplicate selector &quot;.btn.clear&quot;, first used at line 418 no-duplicate-selectors husky &gt; pre-commit hook failed (add --no-verify to bypass)</code></p>
  <p>I read on the documentation that using the command &quot;--no-verify&quot; it skips &quot;stylelint --fix&quot;, but I'd like to run &quot;stylelint --fix&quot; to fix the errors stylelint can fix and to skip the prevent commit.</p>
  <p>In other words, I'd like to fix the errors that can be fixed automatically and to commit even if there are some warnings from stylelint.</p>
  <p>Is it possible to do that?</p>