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

HTML properties in camelCase automatically correcting to lowercase breaks nativescript-vue #1332

Closed
3 tasks done
DKhalil opened this issue Jun 12, 2019 · 2 comments
Closed
3 tasks done

Comments

@DKhalil
Copy link
Contributor

DKhalil commented Jun 12, 2019

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Win 10
  • Vetur version: 0.21.0
  • VS Code version: 1.35.0

Problem

Certain props like colSpan get autocorrected to lowercase. which breaks Nativescript-Vue, which requires certain props to be written in camelCase.

Reproducible Case

Write colSpan in a tag and save.

@DKhalil DKhalil changed the title HTML properties in camelCase automatically correcting to lowercase breaks nativescirpt-vue HTML properties in camelCase automatically correcting to lowercase breaks nativescript-vue Jun 12, 2019
@DKhalil
Copy link
Contributor Author

DKhalil commented Jun 13, 2019

Okay, so I got it fixed now by switching vetur's default HTML formatter from prettyhtml to prettier

image

Apparently (according to the Nativescript Slack) this issue is coming up regularly, so I'll leave this open for now and let you decide what to do with it.

@octref
Copy link
Member

octref commented Jun 19, 2019

See Prettyhtml/prettyhtml#93. I think prettyhtml made a reasonable choice. If it doesn't work for you, you can use other formatters.

@octref octref closed this as completed Jun 19, 2019
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