prefer-set-has
: Add a minimumItems
array length option
#2491
Labels
prefer-set-has
: Add a minimumItems
array length option
#2491
Description
Add a
minimumItems
option so only arrays from a certain known size will be linted (default 0).The rule can sometimes be too strict, using sets over arrays is usually more performant the more elements it has, and it's negligible in small numbers and readability is preferred.
Fail
minimumItems: 5
Pass
minimumItems: 5
The text was updated successfully, but these errors were encountered: