Skip to content
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

Match vue create formatting out of the box #2667

Open
lukepighetti opened this issue Feb 1, 2021 · 2 comments
Open

Match vue create formatting out of the box #2667

lukepighetti opened this issue Feb 1, 2021 · 2 comments

Comments

@lukepighetti
Copy link

lukepighetti commented Feb 1, 2021

I haven't touched Vue in a while so if this is already handled please feel free to close this issue.

When I generate a vue project with Vue CLI and install Vetur I expect code formatting to match what Vue CLI generates. Right now Vetur is adding in semi-colons, double quotes, trailing commas, and breaking long lines.

Is there any reason why this is not the case? Is there any way to configure it so this is the case?

@lukepighetti lukepighetti changed the title Match vue formatting out of the box Match vue create formatting out of the box Feb 1, 2021
@yoyo930021
Copy link
Member

We have many formatter in Vetur.
Vue CLI is also have many built-in styles.
They are not even a simple mapping relationship.

Vetur provide many options.
You can set it same to your Vue CLI project.

@lukepighetti
Copy link
Author

lukepighetti commented Feb 2, 2021

If I do vue create and do all the defaults, how do I setup Vetur to format exactly the same?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants