prefer-each
Added in v0.6.0Configuration
rslint.config.ts
Rule Details
Prefer .each over wrapping describe/test/it in native for loops, for
clearer output and easier filtering. A loop that only runs logic inside a test
function is ignored; a loop that registers tests, suites, or hooks is reported
wherever it sits.
Examples of incorrect code for this rule:
Examples of correct code for this rule: