Redundant `for ... of` rules for TypeScript files
jonahsnider opened this issue · 2 comments
jonahsnider commented
@typescript-eslint/prefer-for-of
and unicorn/no-for-loop
seem to both do the same thing.
sindresorhus commented
This would be more actionable if you did a more in-depth comparison. For example, unicorn/no-for-loop
might catch some cases that @typescript-eslint/prefer-for-of
do not.
fregante commented
One example:
But I'm closing because it's currently inactionable. Can be reopened with more info/suggestions on what to do and why. It might be worth asking the Unicorn team what their intention is with the rule and to document its differences in their docs.