Is there a way to receive an error when attempting to use a variable before assigning it in TypeScript? For example:
let a: number;
let b = a;
I have discovered that enabling the strictNullChecks option in the TS compiler can detect this issue, but it also flags null assignment violations that I am not interested in. I had hoped that TSLint would offer a rule for this specific case, but my search came up empty.
Are there any other TSLint rules or TS compiler options available for detecting the use of variables before they are assigned, aside from strictNullChecks?