Consider the following TypeScript code sample.

```
var checkEqual = function (a:any, b:any) {
    if(a == null)
    {
        return false;
    }
}

```

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

```
var checkEqual = function (a, b) {
    if (a == null) {
        return false;
    }
};

```

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

> 
> **Use === to compare with null**
> 
> 
> 

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.

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).