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
The plugin doesn't works when babel-ts is used as parser for .tsx files. However, it works well with .ts files.
Expected behavior
Actual imports:
import{typeComponentProps,typeFC,useState,useEffect,useMemo}from"react"import{isNullOrUndefined}from"@mep/libs"import{typeGtmTrackingService,Logger,DI}from"@mep/infra"// this should be put before @mep/libsimport{typeToken}from"~/domain/models/token"import{typeUser}from"~/domain/models/user"import{typeSessionService}from"~/domain/services/session/session-service"import{typeCrmService}from"~/domain/types/external-dependencies"import{Splash}from"~/presentation/components/splash/splash"import{useRefreshToken}from"~/presentation/hooks/use-get-refresh-token/use-refresh-token"import{useGetToken}from"~/presentation/hooks/use-get-token/use-get-token"import{useGetUser}from"~/presentation/hooks/use-get-user/use-get-user"import{useLogout}from"~/presentation/hooks/use-logout/use-logout"import{AuthContext,typeAuthContextType}from"~/presentation/contexts/auth-context/auth-context"
Expected imports:
import{typeComponentProps,typeFC,useState,useEffect,useMemo}from"react"import{typeGtmTrackingService,Logger,DI}from"@mep/infra"// this should be put before @mep/libsimport{isNullOrUndefined}from"@mep/libs"import{typeToken}from"~/domain/models/token"import{typeUser}from"~/domain/models/user"import{typeSessionService}from"~/domain/services/session/session-service"import{typeCrmService}from"~/domain/types/external-dependencies"import{Splash}from"~/presentation/components/splash/splash"import{useRefreshToken}from"~/presentation/hooks/use-get-refresh-token/use-refresh-token"import{useGetToken}from"~/presentation/hooks/use-get-token/use-get-token"import{useGetUser}from"~/presentation/hooks/use-get-user/use-get-user"import{useLogout}from"~/presentation/hooks/use-logout/use-logout"import{AuthContext,typeAuthContextType}from"~/presentation/contexts/auth-context/auth-context"
I've found that this bug also applies to .ts files when the override configuration focuses on typescript files either alone or in addition to .tsx files inside .prettierrc. This is the override block that I'm using in my project, previously it included "*.tsx" in addition to "*.ts", but the .tsx override was removed because of this bug.
Environment
Describe the bug
The plugin doesn't works when
babel-ts
is used as parser for.tsx
files. However, it works well with.ts
files.Expected behavior
Actual imports:
Expected imports:
Configuration File (.prettierrc.cjs)
Error log
There is no error log. Prettier works, but without the plugin:
Thank you.
The text was updated successfully, but these errors were encountered: