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
no-for-loop
We didn't use avoidCapture in this rule.
avoidCapture
for (let i = 0; i < arr.length; i += 1) { console.log(arr[i]); const element = foo(); console.log(element); }
Fixed to
for (const element of arr) { console.log(element); const element = foo(); console.log(element); }
The text was updated successfully, but these errors were encountered:
Why is this fix invalid?
Sorry, something went wrong.
the variable element
element
🤦♂️ Of course, I must be asleep, thanks
Successfully merging a pull request may close this issue.
We didn't use
avoidCapture
in this rule.Fixed to
The text was updated successfully, but these errors were encountered: