feat: add type definitions#246
Conversation
5826543 to
d8f9980
Compare
bea3155 to
479ac3d
Compare
e05e75f to
e603aa5
Compare
|
I'm thinking about adding some type tests to instill some more confidence, let me know if that's something you would be interested in. |
|
That very much would be! We have an issue in a different eslint-community repo to do exactly that (eslint-community/eslint-plugin-n#212). So I would (possibly) look to 'borrow' the prior art if you do end up adding some tests :) |
47d2440 to
8683642
Compare
|
Any update? Thanks 🙌 |
Sorry about that, I kind of got busy and neglected this, I did mention a while back that I think it's better if we do a full TS migration so the types remain accurate and stay in sync with the runtime code. That offer still stands, I would love to do that if you guys are okay with it. |
|
@aryaemami59 Awesome thanks 🙂 |
a2dd459 to
4f1f511
Compare
5ef2840 to
1e4b665
Compare
|
Looks great! Thank you 🚀 |
1e4b665 to
62ea794
Compare
f4d62f4 to
27f34f8
Compare
27f34f8 to
205fb26
Compare
JoshuaKGoldberg
left a comment
There was a problem hiding this comment.
LGTM! 🚀
+1 to shipping this now to resolve types issues for users of the plugin, then considering a full TS migration later.
MichaelDeBoey
left a comment
There was a problem hiding this comment.
LGTM, but let's rebase onto latest main & revert all unrelated changes
|
I'll make the requested adjustmentts shortly. |
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
MichaelDeBoey
left a comment
There was a problem hiding this comment.
Maybe we should make release dependent on these new workflows?
Otherwise a release could happen even if types aren't correct
CC/ @JoshuaKGoldberg
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
|
🎉 This PR is included in version 4.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
Sorry for pinging everybody in here, but shouldn't the type definitions also have a default export? Before this PR, this line of code was fine: import eslintComments from "@eslint-community/eslint-plugin-eslint-comments";But now, with the type definitions, tools think this package has no default export. For example, I get this error from eslint-plugin-import-x: |

This PR: