Is there an option in TypeScript so that a compiled JavaScript file is JSHint compatible?
<p>Consider the following TypeScript code sample.</p>

<pre><code>var checkEqual = function (a:any, b:any) {
    if(a == null)
    {
        return false;
    }
}
</code></pre>

<p>When I will compile it, it will generate the corresponding JavaScript file without any compile time error as below:</p>

<pre><code>var checkEqual = function (a, b) {
    if (a == null) {
        return false;
    }
};
</code></pre>

<p>But when I run JSHint on the compiled JavaScript code/file I will have following error/warning:</p>

<blockquote>
  <p><strong>Use === to compare with null</strong></p>
</blockquote>

<p>I want the compiled JavaScript code from TypeScript to be JSHint compatible (no errors and warnings should be there). That means either it should generate the correct code or it should give compile time error.</p>

<p>PS: I did not know about tslint before, but even after using it, it is not compiling JavaScript compatible with JSHint (JSHint is still throwing warnings).</p>