Thursday, February 1, 2018

TSLint Rule: no-conditional-assignment

This squawks when you have one equal sign instead of the intended two or three in an if/then comparison in JavaScript. The TypeScript compiler just lets this slide through as it is legitimate JavaScript, so adding in this rule would sanity check where the TypeScript compiler does not.

No comments:

Post a Comment