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
Using v4 of this package moves 'worklet' designation wrongly to the top of the file.
'worklet' is used in react-native-reanimated to show that that function should run on the UI thread instead of the JS thread. See example.
To Reproduce
Formatting using version 4 with the following config
Moves 'worklet' designation away from the function and to the top of the file as an import wrongly in 50% of the cases. I dont know why it happens in certain cases.
Downgrading to 3.3.0 fixes this issue.
Expected behavior
I expect it to not move the 'worklet' designation at all.
Error log
No error logs can be linked since its not an error, it successfully formats it incorrectly.
Contribute to @trivago/prettier-plugin-sort-imports
I'm willing to fix this bug 🥇
The text was updated successfully, but these errors were encountered:
Your Environment
Describe the bug
Using v4 of this package moves 'worklet' designation wrongly to the top of the file.
'worklet' is used in react-native-reanimated to show that that function should run on the UI thread instead of the JS thread. See example.
To Reproduce
Formatting using version 4 with the following config
Moves 'worklet' designation away from the function and to the top of the file as an import wrongly in 50% of the cases. I dont know why it happens in certain cases.
Downgrading to 3.3.0 fixes this issue.
Expected behavior
I expect it to not move the 'worklet' designation at all.
Error log
No error logs can be linked since its not an error, it successfully formats it incorrectly.
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: