Skip to content

How to add custom rules for volar #856

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
seho-dev opened this issue Jan 12, 2022 · 1 comment
Closed

How to add custom rules for volar #856

seho-dev opened this issue Jan 12, 2022 · 1 comment
Labels

Comments

@seho-dev
Copy link

In some applet frameworks, there are some custom components, such as image, view, text; but vscode will report errors when formatting the code, how can I ignore these errors?

image

@johnsoncodehk
Copy link
Member

In your case, you can change <image ...></image> to <image ... /> to avoid this problem if it do not have child nodes.

Otherwise you need to send a PR to https://github.com/Prettyhtml/prettyhtml for fix.

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

No branches or pull requests

2 participants