title: Why fix flag not works in nx lint?
body: <p>I add rule for <a href="https://eslint.org/docs/rules/sort-imports" rel="nofollow noreferrer">sort-imports</a> in my nx project (.eslintrc.json):</p>
  <pre><code>&quot;rules&quot;: {        
            &quot;sort-imports&quot;: [&quot;error&quot;, {
                &quot;ignoreCase&quot;: false,
                &quot;ignoreDeclarationSort&quot;: false,
                &quot;ignoreMemberSort&quot;: false,
                &quot;memberSyntaxSortOrder&quot;: [&quot;none&quot;, &quot;all&quot;, &quot;multiple&quot;, &quot;single&quot;],
                &quot;allowSeparatedGroups&quot;: false
            }],
          &quot;@nrwl/nx/enforce-module-boundaries&quot;: [ ...
  </code></pre>
  <p>And when I run this the <code>--fix</code> flag, nothing change in the file.</p>
  <p>the output I get is:</p>
  <pre><code>➜  nx-app git:(master) ✗ yarn nx run nx-api:lint --fix
  yarn run v1.22.10
  $ nx run nx-api:lint --fix
  &gt; nx run nx-api:lint --fix
  Linting &quot;nx-api&quot;...
  /Users/.../nx-app/apps/nx-api/src/main.ts
    2:1  error  Imports should be sorted alphabetically  sort-imports
  ✖ 1 problem (1 error, 0 warnings)
  Lint errors found in the listed files.
  
  ———————————————————————————————————————————————
  
  &gt;  NX   ERROR  Running target &quot;nx-api:lint&quot; failed
  </code></pre>
  <p>The file content is:</p>
  <pre><code>import { writeFileSync } from 'fs';
  import path from 'path';
  
  console.log({ path });
  
  console.log({ writeFileSync });
  console.log('Hello World!');
  </code></pre>
  <p>So why eslint doesn't fix the file? it's say in the docs:</p>
  <pre><code>The --fix option on the command line automatically fixes some problems reported by this rule
  </code></pre>