You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion: when prettier-plugin-jsdoc is configured with tsdoc: true, backslashes should not be stripped from @, >, and < (those are the triggering characters I've found so far).
The issue here is the interplay of using
eslint-plugin-tsdoc
together withprettier-plugin-jsdoc
.Example:
Here, tsdoc will complain that
So, then I change it to
But then prettier-plugin-jsdoc strips the backslash and I'm back to the original, which the tsdoc lint doesn't like!
Same pattern happens with, eg
Where tsdoc wants me to escape the "@", and prettier-plugin-jsdoc immediately removes it.
My current workaround: surround strings with these problem characters in backticks, at which point tsdoc stops complaining:
The text was updated successfully, but these errors were encountered: