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): [no-floating-promises] add 'allowForKnownSafeCalls' option#9234

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

@JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg commentedJun 3, 2024
edited
Loading

PR Checklist

Overview

Uses the same format and plumbing as the existingallowForKnownSafePromises (#7008 ->#9186). The actual changes are pretty straightforward as a result.

Note that this doesn't yet addnode:test support, as that's blocked by#6861. I plan on sending a followup PR after this one goes in to fix that - usingProgram.sourceFileToPackageName if we really need.

Sending to thev8 branch instead ofmain because there are some project service fixes in there that this relies on. Example errors from targeting themain branch:https://github.com/typescript-eslint/typescript-eslint/actions/runs/9355798709/job/25751928593?pr=9234#logs. Update: or maybe those are also inv8. More investigation required.

💖

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@JoshuaKGoldberg!

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.

@netlify
Copy link

netlifybot commentedJun 3, 2024
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commited8b7d9
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/6660ddf11fdc350008020103
😎 Deploy Previewhttps://deploy-preview-9234--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: 97 (🔴 down 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (🔴 down 8 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-cloud
Copy link

nx-cloudbot commentedJun 3, 2024
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commited8b7d9. 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.

</TabItem>
<TabItemvalue="✅ Correct">

```ts option='{"allowForKnownSafePromiseReturns":[{"from":"file","name":"safe","path":"input.ts"}]}' skipValidation
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

skipValidation

This was a fun one to discover:

  • The playground usesinput.ts
  • docs.test.ts usesfile.ts

I'm stepping out, but separate from this PR we should fix the two to be in sync.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@JoshuaKGoldbergJoshuaKGoldberg removed the request for review fromkirkwaiblingerJune 3, 2024 19:15
@JoshuaKGoldbergJoshuaKGoldberg marked this pull request as draftJune 3, 2024 19:15
@JoshuaKGoldbergJoshuaKGoldberg marked this pull request as ready for reviewJune 4, 2024 19:48
@JoshuaKGoldbergJoshuaKGoldberg requested review froma team andkirkwaiblingerJune 4, 2024 19:48
Copy link
Member

@kirkwaiblingerkirkwaiblinger left a comment

Choose a reason for hiding this comment

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

couple questions, no significant concerns.

@JoshuaKGoldbergJoshuaKGoldberg changed the titlefeat(eslint-plugin): [no-floating-promises] add 'allowForKnownSafePromiseReturns' optionfeat(eslint-plugin): [no-floating-promises] add 'allowForKnownSafeCalls' optionJun 5, 2024
Copy link
Member

@kirkwaiblingerkirkwaiblinger left a comment

Choose a reason for hiding this comment

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

just requesting a second look athttps://github.com/typescript-eslint/typescript-eslint/pull/9234/files#r1626760319 before it's good to go 🙂

Copy link
Member

@kirkwaiblingerkirkwaiblinger left a comment

Choose a reason for hiding this comment

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

doge

JoshuaKGoldberg reacted with heart emoji
@kirkwaiblingerkirkwaiblinger added the 1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge labelJun 5, 2024
@codecov
Copy link

codecovbot commentedJun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.49%. Comparing base(b4fbf6d) to head(ed8b7d9).
Report is 1 commits behind head on v8.

Additional details and impacted files
@@            Coverage Diff             @@##               v8    #9234      +/-   ##==========================================- Coverage   87.52%   87.49%   -0.04%==========================================  Files         387      386       -1       Lines       13197    13162      -35       Branches     3822     3814       -8     ==========================================- Hits        11551    11516      -35  Misses       1349     1349                Partials      297      297
FlagCoverage Δ
unittest87.49% <100.00%> (-0.04%)⬇️

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

FilesCoverage Δ
...es/eslint-plugin/src/rules/no-floating-promises.ts100.00% <100.00%> (ø)

... and1 file with indirect coverage changes

@JoshuaKGoldbergJoshuaKGoldberg merged commit8e95924 intotypescript-eslint:v8Jun 8, 2024
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJun 17, 2024
@JoshuaKGoldbergJoshuaKGoldberg deleted the no-floating-promises-allow-for-known-safe-promise-returns branchJuly 5, 2024 22:47
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@kirkwaiblingerkirkwaiblingerkirkwaiblinger 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.

Enhancement: [no-floating-promises] add an 'allowForKnownSafeCalls' option

2 participants

@JoshuaKGoldberg@kirkwaiblinger

[8]ページ先頭

©2009-2025 Movatter.jp