-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Improve jsdoc inside, generate .d.ts
typings
#490
Comments
(Heya, @JounQin, I adore your recent improvements to the repo, thank you for taking over - Identifying the double resolveConfig was particularly cool!)
I don't think this has much value. Recently I've gotten really good mileage out of using plain JS with JSDoc comments - this code can be type-checked with
eslint/eslint#15453 suggests that eslint doesn't currently support using plugins authored in mjs. Even when it does get supported, the conversion would be "the one |
Yeah, And I'm posting for comments, thanks. I was thinking to release as dual package for
If I'm going on, I would make sure to use More and more tools are going to be EMS-only, I'm trying to follow. |
I'm trying to work out what the gain of this would be - eslint only works in a node environment - commonjs files will always be supported. I can't think of any case where a consumer would need to use an mjs version. At this moment in time eslint plugins authored in mjs are unsupported and in the world where they do become supported it seems like it would be fine to just ship an mjs file - at that point there'd be no need for shipping a cjs file too. I think introducing a bundler and producing cjs and mjs outputs right now is overhead for no material gain. Once eslint supports plugins written in esm format, I'd support us switching from distributing a commonjs file to only distributing a esmodules file, but in both the present and future worlds I can't see a reason why we'd need to distribute both commonjs and esmodules files at the same time.
I like this idea, and I support it, but I think we should time it so we make the switch to author and distribute (without the need of a build tool) an esmodules file at the point eslint supports plugins authored in the esmodules format. |
ESLint will support ESM in the future, but I don't think they would enforce the users to use This issue if |
If a consumer does either We don't need to make any changes to the package to acomodate those use cases - they already work. |
Yeah, but I still want a pure ESM entry, 😅 Of course it maybe related to personal taste now. |
OK, now I thought TS + pure ESM may be overkill for this project, I'll improve jsdoc and generate |
.d.ts
typings
Improving jsdoc seems reasonable. I don't think there's much value in generating/publishing a |
Nice! Though it looks like the types for various plugins lie within that project rather than being something that would live in the |
Because most plugins don't have types. 😅 And that's what I want to "fix". |
close via #509 |
No description provided.
The text was updated successfully, but these errors were encountered: