title: ng lint how to use eslint CLI flags such as --max-warnings=0
body: <p>I've got an Angular 10 project that uses eslint.</p>
  <p>I run my linting with:</p>
  <pre><code>ng lint
  </code></pre>
  <p>There are no errors but some warnings. I want <code>ng lint</code> to fail with a non zero exit code when there are only warnings. I've tried using the eslint flag --max-warnings=0 as follows:</p>
  <pre><code>ng lint --max-warnings=0
  </code></pre>
  <p>but it says:</p>
  <blockquote>
  <p>unknown option '--max-warnings'</p>
  </blockquote>
  <p><a href="https://stackoverflow.com/a/36917828/1205871">This SO post</a> suggests --max-warnings is an eslint CLI option only and cannot be configured via an .eslintrc file</p>
  <p>How can I force linting to fail when there are only warnings when running <code>ng lint</code>? Many thanks</p>