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

[MOB-9256]: Added TypeScript linting rule: prefer-for-of #424

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

mprew97
Copy link
Contributor

@mprew97 mprew97 commented Jul 31, 2024

JIRA Ticket(s) if any

Description

There have been a lot of for loops over basic arrays in PRs lately. We should instead be using array iterations or for-of.

Test Steps

.eslintrc Outdated
Copy link

@lposen lposen Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just thinking... we should probably find a way to standardize this across the entire frontend. It would be awesome if the eslint config in iterable-frontend could be importable.

cc: @nbaldwin @notyourbear

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, that's a good idea 👍

Copy link

@lposen lposen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mprew97 mprew97 merged commit f8ad569 into main Aug 5, 2024
1 check passed
@mprew97 mprew97 deleted the MOB-9256-prefer-for-of branch August 5, 2024 15:38
@bradumbaugh bradumbaugh changed the title [MOB-9256]: prefer for-of [MOB-9256]: Prefer for-of Sep 5, 2024
@bradumbaugh bradumbaugh changed the title [MOB-9256]: Prefer for-of [MOB-9256]: Prefer map over for Sep 5, 2024
@bradumbaugh bradumbaugh changed the title [MOB-9256]: Prefer map over for [MOB-9256]: Prefer "map" over "for" Sep 5, 2024
@bradumbaugh bradumbaugh changed the title [MOB-9256]: Prefer "map" over "for" [MOB-9256]: Prefer map over for Sep 5, 2024
@bradumbaugh bradumbaugh changed the title [MOB-9256]: Prefer map over for [MOB-9256]: Linting rule: prefer for-of Sep 5, 2024
@bradumbaugh bradumbaugh changed the title [MOB-9256]: Linting rule: prefer for-of [MOB-9256]: Added linting rule: prefer for-of Sep 5, 2024
@bradumbaugh bradumbaugh changed the title [MOB-9256]: Added linting rule: prefer for-of [MOB-9256]: Added TypeScript linting rule: prefer-for-of Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants