UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

14 lines (13 loc) • 194 B
id: ts-pointless-bool-cast valid: - | if (cond) {} - | if (cond) { doThing() } - | if (!!x) {} invalid: - | if (Boolean(cond)) { doThing() } - | if (Boolean(x)) {}