-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[v3] plugins declared in .prettierrc
are not loaded on directory
#15079
Comments
It's a known issue, are you sure it works in v2? |
@fisker I tried @devcrev's reproduction at https://github.com/devcrev/p-sh-old, it works on v2.
|
Could be related to Plugin search feature has been removed? |
I am having this same issue with the |
I've noticed that you now need to specify something like Related issue I've opened in a plugin's repo (as I thought it no longer worked): shufo/prettier-plugin-blade#213 |
This
|
I'm observing this bug, too. Running So the fix is either to adjust the context creation to also search for a |
@dummdidumm Indeed. Config files are resolved for each processed file, which is too late. |
I'll work on this |
Seems to be a bug with prettier v3: prettier/prettier#15079
Need to pass `--plugin` options to `prettier` until prettier/prettier#15079 is resolved.
Partially reverts 5e3e77a Prettier v3 has a problem where it does not run plugins correctly: prettier/prettier#15079 Until this is resolved we manually add prettier as a plugin to our invocations. This commit also fixes the since then neglected lints
Partially reverts 5e3e77a Prettier v3 has a problem where it does not run plugins correctly: prettier/prettier#15079 Until this is resolved we manually add prettier as a plugin to our invocations. This commit also fixes the since then neglected lints
Partially reverts 5e3e77a Prettier v3 has a problem where it does not run plugins correctly: prettier/prettier#15079 Until this is resolved we manually add prettier as a plugin to our invocations. This commit also fixes the since then neglected lints
Just chiming in that I was just bit by this trying to get |
None of our svelte files were formatted because of this bug: prettier/prettier#15079
@sdellysse I'm working on this, please wait. #15433 |
* Ensure prettier follows .editorconfig * Fix prettier plugin bug (prettier/prettier#15079)
Right now, prettier 3.0 doesn't correctly format astro files using the plugin. This will be fixed in 3.1 but it hasn't been released yet. If we upgrade it means that we don't have to specify **/*.astro in the invocation of prettier. withastro/prettier-plugin-astro#358 prettier/prettier#15079 prettier/prettier#15433
Environments:
Steps to reproduce:
un-ts/prettier#273 (comment)
Expected behavior:
Like prettier v2,
.sh
files should be checkedActual behavior:
.sh
files are not checkedAfter debugging,
getSupportedFilesGlob
hereprettier/src/cli/expand-patterns.js
Lines 130 to 145 in 79d8a39
does not resolve
.sh
files correctly.The text was updated successfully, but these errors were encountered: