I got this eslint suggestion when working on a typescript project:

TSLint: Type boolean trivially inferred from a boolean literal, remove type annotation(no-inferrable-types)

Original code

changeWasMade: boolean = false;


Typescript can detect this is a boolean, because of its either "false" or "true" status. So, no need to mention it is a boolean.

changeWasMade = false;


Saved you some valuable time?

Buy me a drink 🍺