hosseinmd / prettier-plugin-jsdoc

A Prettier plugin to format JSDoc comments.
MIT License
228 stars 29 forks source link

Make the exported Options have more descriptions and examples. #211

Open Aqzhyi opened 11 months ago

Aqzhyi commented 11 months ago

I hope that import('prettier-plugin-jsdoc').Options can not only be type-checked, but also provide developers with more specific descriptions and examples.

Just like what is expressed in this picture, in VSCode, you only need to add JSDOC above the variable or property, and then you can get the description and example of that option by hovering over it with your mouse.

Doing so can save developers from having to constantly go back to GitHub to check the documentation. It also makes it easier for developers to configure options that suit their own needs.

Package CleanShot 2023-10-08 at 08 44 18

App CleanShot 2023-10-08 at 08 30 22

But I'm not sure if the experience of other IDEs besides VSCode can be consistent.

And if I do this and provide the PR, then I need to set master/tsconfig.json#L8.removeComment configuration to false; I would like to ask for your opinion on this matter.


memo:

hosseinmd commented 11 months ago

What you said is the mission of JSDoc, and definitely the others IDEs should also go in that direction. LGTM.