You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strange... 🤔
I was under the impression that tsdoc was fully responsible for JSDoc in TypeScript, but it seems not. In any case, TypeScript certainly supports types in JSDoc. We could use its compiler to produce an AST which can be used.
However, one does not need a comment parser to implement 3094.
Can we track each specific feature being requests here? As the only one that I consider essential currently is 3094, as it missing is an annoyance when I convert jsdoc to typedoc, as often multiline jsdoc would become a singleline typedoc, which would be nice if prettier assisted me in converting
/**
* The Base Plugin class that {@link PluginLoader#PluginClass} must inherit from.
*/
into
/** The Base Plugin class that {@link PluginLoader#PluginClass} must inherit from. */
Hi. I did create plugin for my team at work that extends "babel-flow" parser. It's not perfect and does not follow the plugin structure with parsing then printing. But it works.
Reacted by Robert Knight, Paul Reichelt-Ritter, Benjamin Lupton, irek, Manuel, Davidson Nascimento, Daniel Perez, Turadg Aleahmad, Chiawen Chen, Sebastian Fredriksson Bernholtz and 3 more
Activity
ikatyang commentedon Dec 19, 2018
@microsoft/tsdocmatchai commentedon Dec 19, 2018
tsdoc looks like an excellent solution. Full-featured, healthy project and well maintained. 👍
j-f1 commentedon Dec 19, 2018
Unfortunately, TSDoc doesn’t support types :/
matchai commentedon Dec 19, 2018
Strange... 🤔
I was under the impression that tsdoc was fully responsible for JSDoc in TypeScript, but it seems not. In any case, TypeScript certainly supports types in JSDoc. We could use its compiler to produce an AST which can be used.
Here's an example of the TypeScript AST with type data:
https://astexplorer.net/#/gist/3315d0e2976252a97ca8325d4e70f84b/bfae7a580be265c412c895fb11f4d50821595646
balupton commentedon Dec 6, 2019
This issue was referred to #3094
However, one does not need a comment parser to implement 3094.
Can we track each specific feature being requests here? As the only one that I consider essential currently is 3094, as it missing is an annoyance when I convert jsdoc to typedoc, as often multiline jsdoc would become a singleline typedoc, which would be nice if prettier assisted me in converting
into
paschalidi commentedon Feb 7, 2020
Hey @j-f1 can I take this over? Can you help me out how to start with this since its my first time contributing to this codebase?
ir33k commentedon Feb 22, 2020
Hi. I did create plugin for my team at work that extends "babel-flow" parser. It's not perfect and does not follow the plugin structure with parsing then printing. But it works.
We use it for about month on few projects and it feels just great to have it finally automated. So I'd like to share it with you all. Repo: https://gitlab.com/gumen/prettier-plugin-jsdoc. Check unit tests to see what is supported and how.
jasonwilliams commentedon Dec 10, 2020
I was wondering why double-space line breaks weren't working in comments and it seems Prettier doesn't parse comments as markdown.
Would be nice to have support for this.
fardad-dev commentedon Dec 13, 2020
https://github.com/hosseinmd/prettier-plugin-jsdoc is a plugin for format Jsdoc. extended from @gum3n worked project.