We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running prettier on a file with a comment as the last import duplicates that comment
the axios import is multiplied each time I run prettier
This applies to not just imports, it occurs for any comment which immediately follows your imports without a blank line in-between
The commented out imports also multiply
.tsx
npx prettier --write FILE_NAME
I came to this error by using ggascoigne/prettier-plugin-import-sort#13 in my prettier config, and after opening an issue there, they directed me here.
The text was updated successfully, but these errors were encountered:
Hi @renke , any thoughts on this?
Sorry, something went wrong.
No branches or pull requests
Running prettier on a file with a comment as the last import duplicates that comment
This applies to not just imports, it occurs for any comment which immediately follows your imports without a blank line in-between
Run prettier once
Run prettier three times
Repro Steps
.tsx
file where the last import is commented outnpx prettier --write FILE_NAME
on a file where the imports end in a commented out importMore Information
I came to this error by using ggascoigne/prettier-plugin-import-sort#13 in my prettier config, and after opening an issue there, they directed me here.
The text was updated successfully, but these errors were encountered: