Vetur: Toggling suggestion between PascalCase and kebab-case for Vue components in template tags

Created on 18 Feb 2018  路  6Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: Linux
  • Vetur version: 0.11.7
  • VS Code version: 1.20

Request

Right now Vetur suggests components only in kebab-case format. An option to toggle suggestions from command palette between kebab-case and PascalCase for Vue components inside template tags would be great!

feature-request completion

Most helpful comment

All 6 comments

Even more so when the Vue team recommends using pascal case format for naming components: https://vuejs.org/v2/style-guide/#Multi-word-component-names-essential

With some guidance I would like to tackle this issue :)

Hi I would be super interested in this feature .. any status .. any way to help? 馃槈

@samuells, I'd say the code to change is this line by the looks of it.

However, there's apparently a whole client-server architecture here, and that bit is on the server, so plumbing through from the client to the server is beyond me without looking into it in-depth. The actual change is probably trivial, the plumbing the setting all the way through, not so much.

+1 on this! It's been two months I've setup a new project in Vuejs, and now with the eslint config, it error (or warning) on kebab-casing in .vue files. Yes I can disable but I like the idea!

Especially that I've to setup a demo project with VueJS with all the tooling around it so I can sell the idea of using VueJS to replace current frontend technology :)

OH I didn't realize we still have this issue. Thanks for closing.

Was this page helpful?
0 / 5 - 0 ratings