Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(eslint-plugin): add rule prefer-find#8216

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

kirkwaiblinger
Copy link
Member

@kirkwaiblingerkirkwaiblinger commentedJan 8, 2024
edited
Loading

PR Checklist

Overview

Adds a rule that prefersarr.find(...) overarr.filter(...)[0]. Also adds the corresponding autofix as suggestions.

omril1 and mkosir reacted with hooray emoji
@typescript-eslint
Copy link
Contributor

Thanks for the PR,@kirkwaiblinger!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlifyNetlify
Copy link

netlifybot commentedJan 8, 2024
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitb3e6db3
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/65bd1b939870fb0008e6d1c9
😎 Deploy Previewhttps://deploy-preview-8216--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🟢 up 5 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

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

Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

A solid start, thanks for sending this in! Left some requests around edge cases to work on. Have fun 😄

Phoebe from Friends laughing, slightly pained maybe. Caption: 'SO MUCH FUN!'

kirkwaiblinger reacted with thumbs up emojikirkwaiblinger reacted with laugh emoji
@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelJan 9, 2024
@github-actionsgithub-actionsbot removed the awaiting responseIssues waiting for a reply from the OP or another party labelJan 13, 2024
@bradzacherbradzacher added the enhancement: new plugin ruleNew rule request for eslint-plugin labelJan 28, 2024
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

This is looking fantastic! Left a few comments, but mostly just nitpicks. Really happy about the implementation.☺️

I think the only remaining blocker is the0n bigint tests?

@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelJan 30, 2024
JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesJan 30, 2024
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Wait sorry, (as you pointed out in Twitch chat), the0ns are there! I just missed them!

So I think it's just a few nitpicky comments from me left. I'll set a reminder to merge before our next release if you don't have time or interest for them.

kirkwaiblinger reacted with thumbs up emojikirkwaiblinger reacted with heart emoji
@JoshuaKGoldbergJoshuaKGoldberg added 1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge and removed awaiting responseIssues waiting for a reply from the OP or another party labelsJan 30, 2024
@auvred
Copy link
Member

looks good to me

kirkwaiblinger and JoshuaKGoldberg reacted with heart emoji

Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Aggressively enthusiastic guy on a sports field shouting 'let's goooo' in front of a crowd of people

kirkwaiblinger and omril1 reacted with heart emojikirkwaiblinger and omril1 reacted with rocket emoji
@JoshuaKGoldbergJoshuaKGoldberg merged commit3bbb78d intotypescript-eslint:mainFeb 3, 2024
danvk pushed a commit to danvk/typescript-eslint that referenced this pull requestFeb 4, 2024
* Add rule prefer-find* address lots of stuff* remove console statement* tweaks* extract fix to function* improve behavior around nulls* add comments around array indexing checks* messages were backwards* filter syntax* formatting* add extra comma operator test* pr feedback round 2* Fix the theCo-authored-by: auvred <61150013+auvred@users.noreply.github.com>* fix up imports* address intersections of arrays---------Co-authored-by: auvred <61150013+auvred@users.noreply.github.com>
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsFeb 11, 2024
@kirkwaiblingerkirkwaiblinger deleted the prefer-find branchFebruary 21, 2024 21:06
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

@bradzacherbradzacherbradzacher left review comments

@auvredauvredauvred approved these changes

@StyleShitStyleShitAwaiting requested review from StyleShit

Assignees
No one assigned
Labels
1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we mergeenhancement: new plugin ruleNew rule request for eslint-plugin
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Rule proposal: Preferring .find(...) over .filter(...)[0]
5 participants
@kirkwaiblinger@auvred@JoshuaKGoldberg@bradzacher@StyleShit

[8]ページ先頭

©2009-2025 Movatter.jp