prefer-is-empty Prefer isEmpty over comparisons with zero length Zero comparisons over canonical length and size members duplicate the isEmpty query. Instead, you SHOULD use isEmpty, negating it when the comparison asks whether elements exist. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function empty(values: int32[]): boolean { return values.length === 0; } Accepted function empty(values: int32[]): boolean { return values.isEmpty; } Prior art - Clippy ยท lenzero language/linter/src/rules/style/preferisempty.rs:8