-
Notifications
You must be signed in to change notification settings - Fork 1
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: make anys explicit #116
base: main
Are you sure you want to change the base?
Conversation
612937f
to
838d9ff
Compare
This is just a suggestion to clean up the lint warnings. I am not passionate about this solution but I do like lint output to be clean. |
I'm assuming they were just warnings, so not the end of the world. But I'm fine with sentiment. Overall though, I would prefer just targeted ignore comments over an alias. |
+1 to Bryan, sentiment is totally sound, but I do hesitate to obfuscate a baseline TS type. The larger question is actually how this warning/error would be handled in other linters e.g. |
Yeah, I am not a big fan either. I just was floating it out there because I was being lazy and didn't want to litter |
Interesting thought. My feeling is that it could be "abused." In the sense that there is nothing stopping someone from |
I'm actually for this if we can make sure the various linters could all theoretically support it |
I'm fine with this approach till it doesn't work. I just don't like to see the warnings in the output. |
I also prefer this to ignore statements all over the place; but I only prefer it 51% to 49%, so am easily swayed. |
838d9ff
to
ebc4e4f
Compare
Lets see if I can articulate what is in my head, since eloquence isn't a strong suit of mine. Allowing |
I can appreciate the desire for more eloquence as remote communication is always more difficult. It sounds like you interpreted my comment as me wanting to not allow using I think we are also aligned with where the "burden" of responsibility should reside; on the author not the reviewer. The author should be responsible for clearly describing the changes they are introducing both in implementation logic and type definition. The use of There are far more uses of What I was suggesting is allow explicit |
That is exactly what I am referring to, though. When I said
I would have to have you argue your case for that. As, in my eyes, its no different then |
I think the largest value add for explicit |
9d934f9
to
a8d3b2a
Compare
I am not making a case for anything, I am stating a fact. Search for I am not trying to be critical or getting on a high horse; because I am also guilty of not doing a good job of filling in an explanation myself. I am just pointing out that there does not seem to be rigor in requiring the explanation currently. What I would argue is that disabling the warning for explicit use of |
a8d3b2a
to
6084f41
Compare
Going in circles.
That is very much an "us" thing and in no way invalidates the point. I don't know where the |
Ok good. Then I was just misunderstanding. So we want to change the setting to allow for explicit |
6084f41
to
598978c
Compare
598978c
to
d7867f0
Compare
@kalisjoshua TL;DR:
This way, any |
Closes #115
✅ Pull Request Checklist:
📝 Test Instructions:
❓ Does this PR introduce a breaking change?
💬 Other information