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
When trying to answer this question, I noticed that prettier does not seem to work well when the language lang-tsx is set on Stackoverflow.
It keeps turning
constref=useRef<SVGPathElement>(null)
into
constref=useRef<SVGPathElement>null
When setting the language to either lang-typescript or lang-ts, it formats it correctly. lang-tsx seems to be a valid specifier according to the guide, and does highlight the syntax correctly.
The text was updated successfully, but these errors were encountered:
When trying to answer this question, I noticed that prettier does not seem to work well when the language
lang-tsx
is set on Stackoverflow.It keeps turning
into
When setting the language to either
lang-typescript
orlang-ts
, it formats it correctly.lang-tsx
seems to be a valid specifier according to the guide, and does highlight the syntax correctly.The text was updated successfully, but these errors were encountered: