-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: add type comment to exported plugin #488
chore: add type comment to exported plugin #488
Conversation
Shouldn't help as TS doesn't read JSDoc comments from Would need to compile it to a .d.ts? |
|
Even when Such behavior has already caused issues in ESLint as TS has an undocumented behavior of setting it when using JSDoc comments should not be relied upon |
Yes, per the reproduction case I linked in the issue. Agreed that Personally, I'd rather lean towards "perfect is the enemy of good" and ship this now + hope for that eventually. There's no harm in including these type-rich JSDocs for pure |
So typescript eslint is not respecting the tsconfig in this regard? I’m pro fixing #310 but against making any changes to JSDoc comments because others have decided to consume them as published types. eslint/eslint#18100 (comment) is one of many proofs that it’s a bad idea to consume JSDoc comments from third party modules Unless this module publishes type definitions this module should be interpreted as untyped is my opinion |
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.
I don't object to the change itself, but I object to it being a solution to the problem at hand
@voxpelli it's also useful for internal development and doesn't impact users using sanctioned type methods. If we ignore the reasoning around external types, do you have any remaining blockers? |
@JoshuaKGoldberg no other blockers, if we change it so that this doesn't promote usage of it externally in any way then I'm okay with it |
The comment as-is is exactly what one would do for a purely internal change. There's nothing to be done to promote or not-promote it externally. |
Removing the Fixes 😜 |
Thanks all! |
This will give a bit nicer of an IDE experience for folks working in editors such as VS Code that have built-in TypeScript support.