-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two lines after last import #241
Comments
For me this problem happens when I use the shortcut CTRL + SHIFT + F to format the code and then immediately save the file with CTRL + S. I ended up discovering that I can solve it by changing the automatic saving configuration of VS Code in the settings.json file:
To this:
|
For me, this (or similar issue) started happening a few weeks ago, after one of the PHPStorm updates. Moreover, the formatter also removes the empty line at the end of file, which also causes linter errors. |
I disabled the "Reformat code" option for "Actions on save", and fixed the issue in Webstorm. |
Your Environment
Describe the bug
This plugin is placing two line breaks after the last import:
Here is what things look like when this plugin is disabled:
To Reproduce
Expected behavior
The last import
Screenshots, code sample, etc
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
Error log
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: