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

fix: use-isnan doesn't report on SequenceExpressions #18059

Merged
merged 7 commits into from Feb 6, 2024

Conversation

StyleShit
Copy link
Contributor

@StyleShit StyleShit commented Jan 31, 2024

Prerequisites checklist

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

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

What changes did you make? (Give an overview)

The use-isnan rule didn't report SequenceExpressions, so I've added a short condition to check for that, plus some tests

Closes #18058

@StyleShit StyleShit requested a review from a team as a code owner January 31, 2024 18:44
Copy link

netlify bot commented Jan 31, 2024

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 172657c
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/65c11178aa2d5d0008cb5c65
😎 Deploy Preview https://deploy-preview-18059--docs-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@eslint-github-bot eslint-github-bot bot added the bug ESLint is working incorrectly label Jan 31, 2024
@nzakas
Copy link
Member

nzakas commented Jan 31, 2024

@StyleShit can you please update your description and fill out the pull request template? This is required in every PR. Thanks!

@StyleShit
Copy link
Contributor Author

@nzakas Sure, sorry for that (again... 😅)

I'm just used to opening a PR from my local machine without even opening Github, so it doesn't add the template.
Will make sure to use it next time 😄

@nzakas
Copy link
Member

nzakas commented Jan 31, 2024

That's what I figured, no worries. :)

@nzakas nzakas added the accepted There is consensus among the team that this change meets the criteria for inclusion label Jan 31, 2024
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

Code LGTM. Can you also add some examples to the docs?

@StyleShit
Copy link
Contributor Author

That's a good idea!
Not sure what/where to put it though, added this for now, but we can probably do better, WDYT?

@amareshsm amareshsm added rule Relates to ESLint's core rules enhancement This change enhances an existing feature of ESLint and removed enhancement This change enhances an existing feature of ESLint labels Feb 1, 2024
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! Leaving this open for @nzakas to verify.

Copy link
Member

@nzakas nzakas 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!

@nzakas nzakas merged commit c4d26fd into eslint:main Feb 6, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion bug ESLint is working incorrectly contributor pool rule Relates to ESLint's core rules
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Bug: use-isnan doesn't report on SequenceExpressions
4 participants