hosseinmd / prettier-plugin-jsdoc

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

@overload must be after @template #226

Open boneskull opened 8 months ago

boneskull commented 8 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 8 months ago

Example workaround:

{
  "prettier": {
    "jsdocTagsOrder": "{\"template\": 24.5}"
  }
}
leaftail1880 commented 4 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