We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fp/no-loops
I want to discuss this rule and why we are forbidding the use of for-of or for loops.
for-of
for
https://github.com/jfmengels/eslint-plugin-fp/blob/master/docs/rules/no-loops.md
In general if you need something performant a for loop is unbeatable on large scale
like
for (let i = 0, max = hugeSet.length(); i < max; i ++) { ... }
a different example often you want to iterate over an iterate-able with entries in a sync manor where some async code is awaited:
for (const entry of entries) { await doSomeAsync(entry) console.log('done for entry') }
IMO these are valid examples to use a for or forof and we should not forbid them.
forof
cc @eduardoboucas @ehmicky @netlify-team-account-1 @ascorbic @erezrokah
The text was updated successfully, but these errors were encountered:
I'm okay with removing it.
Sorry, something went wrong.
It looks like we can move forward with this.
Let's do it! 🚀
Can I suggest we remove the fp plugin entirely. I think it's far too opinionated for a global config like this.
No branches or pull requests
I want to discuss this rule and why we are forbidding the use of
for-of
orfor
loops.https://github.com/jfmengels/eslint-plugin-fp/blob/master/docs/rules/no-loops.md
In general if you need something performant a for loop is unbeatable on large scale
like
a different example often you want to iterate over an iterate-able with entries in a sync manor where some async code is awaited:
IMO these are valid examples to use a
for
orforof
and we should not forbid them.cc @eduardoboucas @ehmicky @netlify-team-account-1 @ascorbic @erezrokah
The text was updated successfully, but these errors were encountered: