-
Notifications
You must be signed in to change notification settings - Fork 48
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
Runs When it Shouldn't #87
Comments
Another thing I should note is that |
It doesn't work when you have global prettier config file. |
I don't have a global config
…On Thu, Sep 10, 2020, 12:06 Qiming zhao ***@***.***> wrote:
It doesn't work when you have global prettier config file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAZZHLQKFI7K4NDQ3AA5TSFD2P3ANCNFSM4QHWX6UA>
.
|
Could be prettier config file in one of the parent folders. |
Is this behaviour part of Prettier or this plugin? |
It's resolved by prettier |
(Apologies for the necromancy): I'm running into this as well. Running the following results in no output: prettier --find-config-path ./ However, if I add a .prettierrc This indicates to me that the issue is not that a global config is being used. Is there something else I can check? |
I'm sure it's because you have an .editorconfig file in the root. That's what I just got bit by. Deleted that file from the root and the unwanted formats stopped. |
This plugin could really use an option to disable using |
That is definitely what it is for me. I glossed right over that in the docs. |
Can confirm that it was my issue as well. |
Given some project that DOES NOT use Prettier, coc-prettier, when using the following configuration, will run on save:
This is actually as documented! I propose that
prettier.requireConfig
should default totrue
. I believe that this is the expected behaviour of this plugin.The text was updated successfully, but these errors were encountered: