Skip to content
New issue

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

for..of loops are considered restricted syntax #27

Open
2 tasks
emteknetnz opened this issue Jun 25, 2024 · 0 comments
Open
2 tasks

for..of loops are considered restricted syntax #27

emteknetnz opened this issue Jun 25, 2024 · 0 comments

Comments

@emteknetnz
Copy link
Member

emteknetnz commented Jun 25, 2024

When using a for..of loop it's considered restricted syntax

I'm forced to use // eslint-disable-line no-restricted-syntax in order to use it. The alternative is to use a traditional for loops, which is kind of antiquated, or using .forEach(() => {}) and having everything in a function

Looks like for..of is a restricted syntax in airbnb, community does not seem to particularly agree with this - airbnb/javascript#1271

Acceptance criteria

  • Update eslint-config to allow for..of loops
  • Also allow null coalsessing - ?? and ?.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant