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
files that include React runtime code, like React.useState, are properly handled by the code-mod. However, as soon as there is a single type import from React, like React.ReactNode, it shows the complete file as SKIP. Example file that will be skipped:
As soon as we change to e.g.event:any, the file is correctly processed.
The following settings were used:
? On which files or directory should the codemods be applied? .
? Which dialect of JavaScript do you use? TypeScript
? Destructure namespace imports (import *) too? Yes
expected behaviour
type imports are transformed exactly like runtime imports, so the above example should become:
current behaviour
files that include React runtime code, like
React.useState
, are properly handled by the code-mod. However, as soon as there is a single type import from React, likeReact.ReactNode
, it shows the complete file asSKIP
. Example file that will be skipped:As soon as we change to
e.g.
event:any
, the file is correctly processed.The following settings were used:
expected behaviour
type imports are transformed exactly like runtime imports, so the above example should become:
The text was updated successfully, but these errors were encountered: