You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new project in vue ui with default template;
In vue ui open Configuration -> ESLint configuration -> Rules tab + select Error for vue/component-name-in-template-casing + Save settings;
Open App.vue and add, for example <b-button>My Button</b-button>. Save changes;
npm run lint;
Open App.vue again and you will see, that b-button is changes to BButton, because of the rule to transform components to PascalCase. I checked that bootstrap-vue works in camelCase (bButton) and kebab-case (b-button), but not in PascalCase (BButton), probably because in the first part of b-button/BButton there is just 1 letter (I can guess, should be at least 2 instead).
What did you expect to happen?
So, as a result, as I understand, the rule vue/component-name-in-template-casing should not transform component name in case, if the first part of <b-button> has just one letter or if the first letter has lower case + the 2nd letter has upper case + the 3rd letter has lower case (bButton).
What actually happened? <b-button> and <bButton> are transformed to <BButton>.
Additional info
Same problem happens with Vuetify (commented in #397)
The text was updated successfully, but these errors were encountered:
Hi @TitanFighter I'm going to close this issue, as there is other that propose slightly better solution to this problem: #705 And it's actually in progress in #714
Uh oh!
There was an error while loading. Please reload this page.
Tell us about your environment
Please show your full configuration:
What did you do?
vue ui
withdefault
template;vue ui
openConfiguration -> ESLint configuration -> Rules tab
+ selectError
forvue/component-name-in-template-casing
+ Save settings;App.vue
and add, for example<b-button>My Button</b-button>
. Save changes;npm run lint
;App.vue
again and you will see, thatb-button
is changes toBButton
, because of the rule to transform components to PascalCase. I checked thatbootstrap-vue
works in camelCase (bButton
) and kebab-case (b-button
), but not in PascalCase (BButton
), probably because in the first part ofb-button
/BButton
there is just 1 letter (I can guess, should be at least 2 instead).What did you expect to happen?
So, as a result, as I understand, the rule
vue/component-name-in-template-casing
should not transform component name in case, if the first part of<b-button>
has just one letter or ifthe first letter has lower case + the 2nd letter has upper case + the 3rd letter has lower case
(bButton).What actually happened?
<b-button>
and<bButton>
are transformed to<BButton>
.Additional info
Same problem happens with
Vuetify
(commented in #397)The text was updated successfully, but these errors were encountered: