-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Parsing error from prettier for brand new project #5956
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
Comments
The default template still generates projects with prettier v1. Should be able to parse this syntax once it's upgraded to prettier v2. Thanks for the report! |
faced the same problem... temporary solution, upgrade the prettier to "^2.2.0". |
I updated prettier to the latest version and now if I run |
This is normal behavior, depends on the settings for the line length limitation. |
Version
4.5.7
Reproduction link
awerlang/sourdough@77221be
Environment info
Steps to reproduce
npm run lint
What is expected?
Should be a no-op, at least formatting without any failures.
What is actually happening?
Removing the type keyword satisfies prettier.
Prettier should support import type already, which may have to be fixed somewhere.
Found a discussion around the import type: https://github.com/vuejs/vue-cli/pull/5903/files#r495727376
The text was updated successfully, but these errors were encountered: