Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
docs: replace extend any with unknown for no-unnecessary-type-constra…#6976
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
docs: replace extend any with unknown for no-unnecessary-type-constra…#6976
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for the PR,@takanome-dev! 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. |
netlifybot commentedApr 30, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview fortypescript-eslint ready!
To edit notification comments on pull requests, go to yourNetlify site settings. |
nx-cloudbot commentedApr 30, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Sorry this took so long@takanome-dev, I'd meant to enthusiastically respond but it slipped by. Thanks for sending!
Mostly looks great - just one suggestion for the docs to make the phrasing more clear. Thoughts?
packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
…nt.mdCo-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
…-constraint-extending-unknown
Sounds good 👍 Thanks for taking the time reviewing this 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
PR Checklist
Overview
This pr replaces the default constraint for
no-unnecessary-type-constraint
fromany
tounknown
in the docs.Note: I'm not really sure if I have to change all the any to unknown in the example block. I tried in the test file and they all failed 😓 I have added two more examples using unknown (only in the incorrect section).
Please do let me know if there are additional steps I need to take 🙏