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
prettierx removes space after comma at <T,>: const MyComponent = <T, >({x, y, z}: Props<T>) => {…}, eslint standard config on the other hand expects this space.
Probably it can be an issue at prettier-standard instead, but I don't see an option to configure having this space only for generics
The text was updated successfully, but these errors were encountered:
Thanks. I think this should also be tracked on prettier-standard.
According to microsoft/TypeScript#15713 (comment), that trick should not be needed on Babylon (Babel) or Flow parsers. I am actually planning to switch prettierx to use Babel's parser for TypeScript by default (see #54) once they are finished with prettier/prettier#6400.
There is a trick how to force parser to think it's a generic and not TSX code in
.tsx
filetypescript-eslint/typescript-eslint#1457
prettierx removes space after comma at
<T,>
:const MyComponent = <T, >({x, y, z}: Props<T>) => {…}
, eslint standard config on the other hand expects this space.Probably it can be an issue at prettier-standard instead, but I don't see an option to configure having this space only for generics
The text was updated successfully, but these errors were encountered: