Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

The HTML structure of the commands lint and format is inconsistent #751

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

Closed
aslrz-club opened this issue May 14, 2025 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@aslrz-club
Copy link

My prettier configuration

{
  "$schema": "https://json.schemastore.org/prettierrc",
  "semi": false,
  "singleQuote": true,
  "printWidth": 100,
  "trailingComma": "all",
  "arrowParens": "always",
  "tabWidth": 2,
  "useTabs": false,
  "bracketSpacing": true
}

vscodo automatically formatted results


![Image](https://github.com/user-attachments/assets/bd1784b9-b595-461c-8fe6-175960b7d946)

The result of executing npm run format

Image

I want the structure to be as above

@aslrz-club aslrz-club added the bug Something isn't working label May 14, 2025
@aslrz-club
Copy link
Author

Image

@cexbrayat
Copy link
Member

Hi @aslrz-club

I'm not sure what your issue is.

This repo is the official project generator for Vue, it does generate a minimal prettier config, but you're free to update it as you like.

What is the issue with create-vue?

@aslrz-club
Copy link
Author

I want the commands lint and format to produce the same results. How should I configure this?

@cexbrayat
Copy link
Member

You'll need to update your eslint config to use prettier via @vue/eslint-config-prettier
Check out the docs at https://github.com/vuejs/eslint-config-prettier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants