-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
my config single_quote is ignored #146
Comments
Hi @dedoyle, Do you mind providing the output of Also does your project have some The above behaviour would happen if somewhere above the ancestry of directories of where you are editing your file may have a prettier config overwrite |
I'm experiencing the same issue. No settings are working and I have no .prettierrc, prettier.config.json or such present either that could interfere. PrettierCliVersion: 1.13.7 |
@mitermayer I don't have any configuration for prettier except the configuration in vimrc. I use Gvim in win7. And the output of Gvim: 8.0 (Features included +python, +lua, +perl) |
I will look into this tonight and post findings in here and if able to reproduce will fix this issue and create a release |
I tested this by editing a file foo.js that has simple content function a() {
return 2;
} with a {
"tabWidth": 8
} tested with both function a() {
return 2;
} |
Will investigate a bit more tomorrow to see if it has been any change on the API for forcing single quotes from the cli |
I had an error where I had to set the parser explicity to 'babylon' on .prettierrc and also if requirePragma is true then the pragma now has to be
This seems to no longer work
I hope my findings help, I ended up disabling the pragma requirement to avoid changing all my pragmas to the new format, but I would like to find a way to make it work (was the old style a vim-prettier feature?) |
I will resume working on vim-prettier in 2 weeks, been very busy at work at this stage as I am about to go on paternity leave in the next 2 weeks, I really appreciate you raising this issue |
I ran into this on a project with a I was able to get the behavior I expected by setting:
This uses my vim-prettier settings as a default, but allows Anyway, thanks for creating/maintaining vim-prettier! |
I got inspired from mvgrimes. So I delete |
let g:prettier#config#config_precedence = 'file-override' |
It may be a bug
vimrc
I think the prettier ignoring my configuration about single_quote. Because it turns all quotes to double quotes. I had also tried other configuration, like tab_width. Not work too.
PrettierVersion: 0.2.7
PrettierCliVersion: 1.13.7
PrettierCliPath: prettier
And this work in previous versions until I update vim-prettier today.
The text was updated successfully, but these errors were encountered: