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
Updating from v3.4.0 to v4.0.0 in our AngularJS application started to move ngAnnotate 'ngInject' statements to the top of files as if they were imports.
To Reproduce
This is an AngularJS function that I've altered to allow it to be used for reproduction. Opening this in VSCode and saving any change in move all lines with 'ngInject'; to the top of the file with the imports.
Your Environment
Describe the bug
Updating from v3.4.0 to v4.0.0 in our AngularJS application started to move ngAnnotate 'ngInject' statements to the top of files as if they were imports.
To Reproduce
This is an AngularJS function that I've altered to allow it to be used for reproduction. Opening this in VSCode and saving any change in move all lines with
'ngInject';
to the top of the file with the imports.Result after saving the file:
Expected behaviour
'ngInject';
would not be moved since it isn't an import.Screenshots, code sample, etc
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
In this particular part of the application import order has no rules due to it being legacy code.
Error log
No error it is purely a formatting issue.
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: