menu

almost-complete-range

Disallow character ranges stopping before their conventional endpoint

An exclusive range from a to z, A to Z, or 0 to 9 omits its conventional endpoint. Instead, you SHOULD make the endpoint inclusive when the complete sequence is intended.

Reported

1const lowercase = 'a'..'z';

Accepted

1const lowercase = 'a'..='z';