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

Chore: use includes instead of indexOf #14607

Merged
merged 1 commit into from May 21, 2021

Conversation

Connormiha
Copy link
Contributor

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:

I just replaced indexOf -1 -> includes in some places

What changes did you make? (Give an overview)

Is there anything you'd like reviewers to focus on?

@eslint-github-bot eslint-github-bot bot added the triage An ESLint team member will look at this issue soon label May 21, 2021
@mdjermanovic mdjermanovic changed the title Update: use includes instead of indexOf Chore: use includes instead of indexOf May 21, 2021
@mdjermanovic mdjermanovic added chore This change is not user-facing and removed triage An ESLint team member will look at this issue soon labels May 21, 2021
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

Hi @Connormiha, thanks for the PR!

The changes look good, but the callback-return rule is deprecated, so we don't intend to make any changes in its code. Can you please revert the changes in that file, and leave only those in comma-spacing.js?

@Connormiha
Copy link
Contributor Author

Hi @Connormiha, thanks for the PR!

The changes look good, but the callback-return rule is deprecated, so we don't intend to make any changes in its code. Can you please revert the changes in that file, and leave only those in comma-spacing.js?

Done

Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for contributing!

@mdjermanovic mdjermanovic merged commit afe9569 into eslint:master May 21, 2021
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Nov 18, 2021
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Nov 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants