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

fix(type-utils): check for type parameters onisBuiltinSymbolLikeRecurser()#10026

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

Conversation

ronami
Copy link
Member

@ronamironami commentedSep 20, 2024
edited
Loading

PR Checklist

Overview

This PR addresses#9882 along with a similar issue for@typescript-eslint/prefer-promise-reject-errors:

//@typescript-eslint/only-throw-errorfunctionfun1<TextendsError>(t:T):void{throwt;}//@typescript-eslint/prefer-promise-reject-errorsfunctionfun2<TextendsError>(t:T):void{Promise.reject(t);}

Since this changes a function that's being used in a lot of other places (isBuiltinSymbolLikeRecurser()), this can affect other rules (for better or worse).

Please let me know if you think this isn't the correct way to approach this.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@ronami!

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 commentedSep 20, 2024
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit3406cb7
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/66f116d9088d77000868211b
😎 Deploy Previewhttps://deploy-preview-10026--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: 99 (🟢 up 4 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (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.

@nx-cloudNx Cloud
Copy link

nx-cloudbot commentedSep 20, 2024
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit3406cb7. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 32 targets

Sent with 💌 fromNxCloud.

@ronamironami changed the titleCheck for type parameters onisBuiltinSymbolLikeRecurser()fix(type-utils): Check for type parameters onisBuiltinSymbolLikeRecurser()Sep 20, 2024
@ronamironami changed the titlefix(type-utils): Check for type parameters onisBuiltinSymbolLikeRecurser()fix(type-utils): check for type parameters onisBuiltinSymbolLikeRecurser()Sep 20, 2024
@codecovCodecov
Copy link

codecovbot commentedSep 20, 2024
edited
Loading

Codecov Report

Attention: Patch coverage is16.66667% with5 lines in your changes missing coverage. Please review.

Project coverage is 88.67%. Comparing base(c5dc755) to head(3406cb7).
Report is 14 commits behind head on main.

Files with missing linesPatch %Lines
packages/type-utils/src/builtinSymbolLikes.ts16.66%5 Missing⚠️
Additional details and impacted files
@@            Coverage Diff             @@##             main   #10026      +/-   ##==========================================- Coverage   88.70%   88.67%   -0.03%==========================================  Files         426      426                Lines       14835    14841       +6       Branches     4312     4314       +2     ==========================================+ Hits        13159    13160       +1- Misses       1533     1538       +5  Partials      143      143
FlagCoverage Δ
unittest88.67% <16.66%> (-0.03%)⬇️

Flags with carried forward coverage won't be shown.Click here to find out more.

Files with missing linesCoverage Δ
packages/type-utils/src/builtinSymbolLikes.ts4.91% <16.66%> (+1.28%)⬆️

@ronamironami marked this pull request as ready for reviewSeptember 20, 2024 15:47
@kirkwaiblinger
Copy link
Member

kirkwaiblinger commentedSep 20, 2024
edited
Loading

note - this might impact#10010

@kirkwaiblingerkirkwaiblinger requested a review froma teamSeptember 20, 2024 17:48
Copy link
Member

@auvredauvred left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

ronami reacted with heart emoji
@auvredauvred added the 1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge labelSep 21, 2024
@ronamironamiforce-pushed thecheck-type-parameter-is-builtin-symbol-like-recurser branch from78a70db to3406cb7CompareSeptember 23, 2024 07:20
@ronami
Copy link
MemberAuthor

I haven't looked into it yet but I don't think the codecov failure is related to my changes.

@kirkwaiblinger
Copy link
Member

I haven't looked into it yet but I don't think the codecov failure is related to my changes.

Yeah, don't worry about it 👍 This is due to#8358

ronami reacted with thumbs up 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.

yay!

ronami reacted with heart emoji
@JoshuaKGoldbergJoshuaKGoldberg merged commit94c5484 intotypescript-eslint:mainSep 27, 2024
61 of 62 checks passed
@ronamironami deleted the check-type-parameter-is-builtin-symbol-like-recurser branchSeptember 27, 2024 18:56
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsOct 5, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@auvredauvredauvred left review comments

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

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 merge
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Bug: @typescript-eslint/only-throw-error False positive when throwing Error subclass
4 participants
@ronami@kirkwaiblinger@JoshuaKGoldberg@auvred

[8]ページ先頭

©2009-2025 Movatter.jp