Skip to content
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

@overload must be after @template #226

Open
boneskull opened this issue Jan 19, 2024 · 2 comments
Open

@overload must be after @template #226

boneskull opened this issue Jan 19, 2024 · 2 comments

Comments

@boneskull
Copy link

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
Copy link
Author

Example workaround:

{
  "prettier": {
    "jsdocTagsOrder": "{\"template\": 24.5}"
  }
}

boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 19, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 19, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 19, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 23, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 23, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 26, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 27, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 29, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 29, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 31, 2024
boneskull added a commit to LavaMoat/LavaMoat that referenced this issue Jan 31, 2024
@leaftail1880
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants