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(eslint): Enable and fix (manual & auto) prefer-array-some #88870

Merged
merged 7 commits into from
Apr 8, 2025

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Apr 5, 2025

No description provided.

@ryan953 ryan953 requested review from a team as code owners April 5, 2025 00:25
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 5, 2025

if (['sumdelta'].find(denied => tagSort?.includes(denied))) {
Copy link
Member Author

Choose a reason for hiding this comment

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

wat? must've been adjusted a few times over it's life...

Comment on lines -368 to -370
const aggregate = Object.keys(scoresByInterface)
// @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
.map(interfaceName => [interfaceName, scoresByInterface[interfaceName]])
Copy link
Member Author

Choose a reason for hiding this comment

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

Object.entries()!

@ryan953 ryan953 force-pushed the ryan953/eslint-prefer-array-some branch from b30c644 to 5e598cd Compare April 8, 2025 23:11
getsantry bot and others added 2 commits April 8, 2025 23:12
No need for `.map(Boolean).some(Boolean)` 

it's already been through `.slice(1)` too...
@ryan953 ryan953 enabled auto-merge (squash) April 8, 2025 23:17
@ryan953 ryan953 merged commit 9f589f2 into master Apr 8, 2025
41 checks passed
@ryan953 ryan953 deleted the ryan953/eslint-prefer-array-some branch April 8, 2025 23:31
Christinarlong pushed a commit that referenced this pull request Apr 10, 2025
<!-- Describe your PR here. -->

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants