hosseinmd / prettier-plugin-jsdoc

A Prettier plugin to format JSDoc comments.
MIT License
232 stars 28 forks source link

@overload must be after @template #226

Open boneskull opened 9 months ago

boneskull commented 9 months ago

Here's an example of the default tag ordering applied to a docstring:

image

TS does not like this:

image

image

I can workaround this with a custom order, but the default should be changed

TS v5.3.3

boneskull commented 9 months ago

Example workaround:

{
  "prettier": {
    "jsdocTagsOrder": "{\"template\": 24.5}"
  }
}
leaftail1880 commented 6 months ago

Can confirm this happening on prettier v3.2.5, prettier-plugin-jsdoc v1.3.0, typescript v5.4.5, many thanks for boneskull for workaround