-
Notifications
You must be signed in to change notification settings - Fork 20
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
Not working with .vue files #19
Comments
Vue files were previously not supported for range formatting by Prettier. Now they are! :) prettier/prettier#4868 |
Oh, awesome! 😄 |
solimant
added a commit
to solimant/prettier
that referenced
this issue
Jul 8, 2020
Unfortunately, the precise-commit repo does not seem to have been maintained for about two years: - [most recent commit](nrwl/precise-commits@8038712) to master was on Mar 27, 2018 - [most recent release](nrwl/precise-commits@v1.0.1...v1.0.2) was on Feb 16, 2018 - [most recently closed issue](nrwl/precise-commits#19) was closed on Jul 29, 2018 I have [requested](nrwl/precise-commits#58) archiving. This is sad. I could think of several use-cases where a tool like `precise-commits` could be very useful, especially for already matured projects that are trying to onboard linting and prettifying.
4 tasks
fisker
pushed a commit
to prettier/prettier
that referenced
this issue
Jul 11, 2020
Unfortunately, the precise-commit repo does not seem to have been maintained for about two years: - [most recent commit](nrwl/precise-commits@8038712) to master was on Mar 27, 2018 - [most recent release](nrwl/precise-commits@v1.0.1...v1.0.2) was on Feb 16, 2018 - [most recently closed issue](nrwl/precise-commits#19) was closed on Jul 29, 2018 I have [requested](nrwl/precise-commits#58) archiving. This is sad. I could think of several use-cases where a tool like `precise-commits` could be very useful, especially for already matured projects that are trying to onboard linting and prettifying.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm actually working on an implementation of precise-commits for my project vue-web-extension and I find out that is not working on
.vue
files.Here is the most important parts of my
package.json
:and my
.prettierrc
:The bug
So I have a badly-formatted file:
I update one line, commit, and this is what precise-commits outputs:
So I dumped
options
with aconsole.log(options)
on line 10014 ofnode_modules/prettier/index.js
, and this is what I got:Click to expand
I tried to modifiy a classical
.js
file and it's working as expected.It didn't come from Prettier itself, because
yarn run prettier:write
correctly reformat my Vue file.Also in the
options
dump, I see thatsingleQuote
,printWidth
andtrailingComma
do not follow my.prettierc
... Is it something related?Please tell me if you need more information, I would be glad to help you.
Thanks in advance
The text was updated successfully, but these errors were encountered: