unicorn/no-useless-length-check Correctness 
What it does 
It checks for an unnecessary array length check in a logical expression.
The cases are:
- array.length === 0 || array.every(Boolean)(- array.everyreturns- trueif array is has elements)
- array.length > 0 && array.some(Boolean)(- array.somereturns- falseif array is empty)
Why is this bad? 
An extra unnecessary length check is done.
Examples 
Examples of incorrect code for this rule:
javascript
if (array.length === 0 || array.every(Boolean)) {
  // do something!
}Examples of correct code for this rule:
javascript
if (array.every(Boolean)) {
  // do something!
}How to use 
To enable this rule in the CLI or using the config file, you can use:
bash
oxlint --deny unicorn/no-useless-length-checkjson
{
  "rules": {
    "unicorn/no-useless-length-check": "error"
  }
}