Skip to content

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

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 15, 2025 · 1 comment
Closed

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

The result of executing npm run format

Image

I want the structure to be as above

@haoqunjiang
Copy link
Member

Add the following to your VS Code settings.json:

  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },

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

No branches or pull requests

2 participants