-
Notifications
You must be signed in to change notification settings - Fork 0
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
It seems that it cannot be used together with prettier-plugin-tailwindcss
.
#19
Comments
After cloning the given repository and checking, I think my guidance on how the plugin works and how to use it was a bit lacking. In the case of the Since Since Incorrect code: plugins: [
require.resolve('prettier-plugin-foo'),
], Correct code: plugins: [
'prettier-plugin-foo',
], Also, since Lastly, this is a paragraph added to the README today, but it is correct that setting |
I remember that initially, when using the VSCode Prettier extension with pnpm, it was unable to read plugins. Therefore, it was necessary to use I tried to remove |
I modified the code like this and did
|
I configure prettier like this and it seems to work:
|
I tried again and removed However, I discovered a new problem: when using the Running the If using pnpm, the plugin internally automatically handles the plugin's usage with Running logs in
|
According to this PR, it indicates that when using pnpm, the path of the plugin must be passed. |
I investigated some cases related to the prettier-vscode extension, and confirmed that vscode issue can be resolved in one of the following ways.
I have confirmed that this is not a bug in this plugin, so I will close the issue. |
Well, due to the nested ternary improvement in Prettier 3.1, I will no longer use version 2.x. Thank you for your investigation! I hope |
@u3u Hey, the next version of |
Wow! Thank you for your excellent work! |
I tried to add it, but the before test snapshot failed and the class name did not have a line break.
According to the usage instructions of
prettier-plugin-tailwindcss
, it needs to be placed at the end of the plugins.When I add the
prettier-plugin-classnames
orprettier-plugin-merge
any plugin, the test will fail.You can reproduce it by cloning this repository, switching to the
feat/prettier-plugin-classnames
branch, and runningnpx vitest run
.The text was updated successfully, but these errors were encountered: