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
Just started using this plugin with an old project that has a mix of JS and TS files.
In the JS files, some of them have the 'use strict'; syntax on top of the file. Oddly enough, running Prettier with this plugin will disable the strict mode syntax, as it wraps the syntax in brackets, and moves it below the imports.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just started using this plugin with an old project that has a mix of JS and TS files.
In the JS files, some of them have the
'use strict';
syntax on top of the file. Oddly enough, running Prettier with this plugin will disable the strict mode syntax, as it wraps the syntax in brackets, and moves it below the imports.As an example:
altbdoor/sample-prettier-sort-import@fd8ac55
Fairly certain that it is not Prettier that did it, as I've tried on the Prettier playground.
Is this intended, or more of a bug? Thanks for your time! 🙏
Beta Was this translation helpful? Give feedback.
All reactions