hosseinmd / prettier-plugin-jsdoc

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

fix: support being called as a built-in parser #138

Closed G-Rath closed 3 years ago

G-Rath commented 3 years ago

This should close https://github.com/facebook/jest/issues/12049

Obviously it's not the most ideal - I don't really know of a good way to test this given that it seems very situational :/

It should be possible to make it more TypeScript friendly by breaking the jsdocParser function out to the top level so that function overrides could be used to type the parameters, but that would be a larger change.

hosseinmd commented 3 years ago

Awesome, can i merge this?

G-Rath commented 3 years ago

Yup if you're happy with it, go for it!

hosseinmd commented 3 years ago

Thank you.

hosseinmd commented 3 years ago

Release v0.3.30