W011
A number on the left of && (renders 0).
Fix: cond > 0 &&.
Status in kerf@0.1.0: reported, safe autofix.
Triggers it:
tsx
export function A({ xs }: any) { return <div>{xs.length && <p>has</p>}</div> }More: kerf docs lists.
A number on the left of && (renders 0).
Fix: cond > 0 &&.
Status in kerf@0.1.0: reported, safe autofix.
Triggers it:
export function A({ xs }: any) { return <div>{xs.length && <p>has</p>}</div> }More: kerf docs lists.