Closed n2k3 closed 3 weeks ago
Hello! Thanks for reporting the issue!
Unfortunately, I've only used Webstorm a little bit, so it's difficult to reproduce this issue with Webstorm.
Can you confirm that this is reproduced in VSCode with the same Prettier settings and code? If setting up VSCode is difficult, can you provide me with the minimum repository to reproduce the issue?
I got the same bug. Below is my .pretierrc.json file.
{
"endOfLine": "auto",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"singleAttributePerLine": true,
"bracketSpacing": true,
"arrowParens": "always",
"trailingComma": "es5",
"plugins": [
"prettier-plugin-tailwindcss",
"prettier-plugin-classnames",
"@trivago/prettier-plugin-sort-imports",
"prettier-plugin-merge"
],
"importOrder": [
"^react",
"^next",
"^lucide-react",
"<THIRD_PARTY_MODULES>",
"^~/service/(.*)$",
"^~/hooks/(.*)$",
"^~/provider/(.*)$",
"^~/components/(.*)$",
"^~/utils/(.*)$",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
@n2k3 @osh6006 Fixed in v0.7.1
, check it out!
Dependency information
WebStorm (with "run prettier on save" enabled) on Windows
Steps to reproduce
I have this prettier config in
package.json
:Note: usually
prettier-plugin-tailwindcss
andprettier-plugin-classnames
are in the included at the start of the array, but I omitted them as the issue is causes by theprettier-plugin-merge
plugin.The current behavior
The expected behavior