Add eslint rule #2306

Closed
opened 2026-04-05 16:57:32 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @chibuike-okpara on 5/13/2022

Disallows awaiting a value that is not a Thenable

This means you will not be able to await codes like:

await 'Hello World'

Pull Request Checklist:

  • Please make sure all jobs pass before requesting a review.
  • Assign yourself to the PR
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
  • Label it as "needs-review"
  • Have you lint your code locally before submission?
  • Did you write tests where appropiate?

#43

Screenshots (if appropriate):

*Originally created by @chibuike-okpara on 5/13/2022* ### Disallows awaiting a value that is not a Thenable ### This means you will not be able to await codes like: `await 'Hello World'` ### Pull Request Checklist: - [x] Please make sure all jobs pass before requesting a review. - [x] Assign yourself to the PR - [ ] Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). - [x] Label it as "needs-review" - [x] Have you lint your code locally before submission? - [ ] Did you write tests where appropiate? ### Related Issue? #43 ### Screenshots (if appropriate):
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#2306