Add eslint for any-explicit typing #2295

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

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

Disallow the use of the any type

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?

closes #90

Screenshots (if appropriate):

*Originally created by @chibuike-okpara on 5/17/2022* ### Disallow the use of the any type ### unknown and any are 2 special types that can hold any value. unknown is recommended over any because it provides safer typing — you have to use type assertion or narrow to a specific type if you want to perform operations on unknown ### Pull Request Checklist: - [ ] Please make sure all jobs pass before requesting a review. - [x] Assign yourself to the PR - [x] 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? closes #90 ### 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#2295