https://typescript-eslint.io/rules/strict-boolean-expressions/

1 view
Skip to first unread message

Mike Austin

unread,
May 15, 2026, 11:56:19 AM (6 days ago) May 15
to PiLuD
A way to finally stop allowing string truthyness  if (!string) { }  which should be  if (string.length === 0) { }.

On the flip side, a lot of React patterns break because many props are optional and could be undefined. Sigh.
Reply all
Reply to author
Forward
0 new messages