Commit f2fd6f48 authored by Mark Florian's avatar Mark Florian

Fix component-definition-name-casing violations

This makes us conform to the upstream `vue/recommended` ruleset/style.

Addresses https://gitlab.com/gitlab-org/gitlab/-/issues/297219, part of
https://gitlab.com/groups/gitlab-org/-/epics/5142.
parent 3e7f04be
...@@ -53,7 +53,6 @@ rules: ...@@ -53,7 +53,6 @@ rules:
vue/no-mutating-props: off vue/no-mutating-props: off
vue/one-component-per-file: off vue/one-component-per-file: off
vue/no-lone-template: off vue/no-lone-template: off
vue/component-definition-name-casing: off
# END eslint-plugin-vue@7 overrides # END eslint-plugin-vue@7 overrides
overrides: overrides:
- files: - files:
......
...@@ -33,8 +33,8 @@ export default (containerId = 'js-groups-tree', endpoint, action = '') => { ...@@ -33,8 +33,8 @@ export default (containerId = 'js-groups-tree', endpoint, action = '') => {
dataEl = containerEl.querySelector(CONTENT_LIST_CLASS); dataEl = containerEl.querySelector(CONTENT_LIST_CLASS);
} }
Vue.component('group-folder', groupFolderComponent); Vue.component('GroupFolder', groupFolderComponent);
Vue.component('group-item', groupItemComponent); Vue.component('GroupItem', groupItemComponent);
Vue.use(GlToast); Vue.use(GlToast);
......
...@@ -32,8 +32,8 @@ export default () => { ...@@ -32,8 +32,8 @@ export default () => {
} = el.dataset; } = el.dataset;
const initialData = JSON.parse(el.dataset.initial); const initialData = JSON.parse(el.dataset.initial);
Vue.component('tree-root', TreeRoot); Vue.component('TreeRoot', TreeRoot);
Vue.component('tree-item', TreeItem); Vue.component('TreeItem', TreeItem);
return new Vue({ return new Vue({
el, el,
......
...@@ -41,8 +41,8 @@ export default () => { ...@@ -41,8 +41,8 @@ export default () => {
}); });
} }
Vue.component('epic-item', EpicItem); Vue.component('EpicItem', EpicItem);
Vue.component('epic-item-container', EpicItemContainer); Vue.component('EpicItemContainer', EpicItemContainer);
return new Vue({ return new Vue({
el, el,
......
...@@ -30,7 +30,7 @@ describe('MemberTableCell', () => { ...@@ -30,7 +30,7 @@ describe('MemberTableCell', () => {
const localVue = createLocalVue(); const localVue = createLocalVue();
localVue.use(Vuex); localVue.use(Vuex);
localVue.component('wrapped-component', WrappedComponent); localVue.component('WrappedComponent', WrappedComponent);
const createStore = (state = {}) => { const createStore = (state = {}) => {
return new Vuex.Store({ return new Vuex.Store({
......
...@@ -60,8 +60,8 @@ describe('AppComponent', () => { ...@@ -60,8 +60,8 @@ describe('AppComponent', () => {
beforeEach(() => { beforeEach(() => {
mock = new AxiosMockAdapter(axios); mock = new AxiosMockAdapter(axios);
mock.onGet('/dashboard/groups.json').reply(200, mockGroups); mock.onGet('/dashboard/groups.json').reply(200, mockGroups);
Vue.component('group-folder', groupFolderComponent); Vue.component('GroupFolder', groupFolderComponent);
Vue.component('group-item', groupItemComponent); Vue.component('GroupItem', groupItemComponent);
createShallowComponent(); createShallowComponent();
getGroupsSpy = jest.spyOn(vm.service, 'getGroups'); getGroupsSpy = jest.spyOn(vm.service, 'getGroups');
......
...@@ -19,7 +19,7 @@ describe('GroupFolderComponent', () => { ...@@ -19,7 +19,7 @@ describe('GroupFolderComponent', () => {
let vm; let vm;
beforeEach(() => { beforeEach(() => {
Vue.component('group-item', groupItemComponent); Vue.component('GroupItem', groupItemComponent);
vm = createComponent(); vm = createComponent();
vm.$mount(); vm.$mount();
......
...@@ -20,7 +20,7 @@ describe('GroupItemComponent', () => { ...@@ -20,7 +20,7 @@ describe('GroupItemComponent', () => {
let vm; let vm;
beforeEach(() => { beforeEach(() => {
Vue.component('group-folder', groupFolderComponent); Vue.component('GroupFolder', groupFolderComponent);
vm = createComponent(); vm = createComponent();
......
...@@ -22,8 +22,8 @@ describe('GroupsComponent', () => { ...@@ -22,8 +22,8 @@ describe('GroupsComponent', () => {
let vm; let vm;
beforeEach(() => { beforeEach(() => {
Vue.component('group-folder', groupFolderComponent); Vue.component('GroupFolder', groupFolderComponent);
Vue.component('group-item', groupItemComponent); Vue.component('GroupItem', groupItemComponent);
vm = createComponent(); vm = createComponent();
......
...@@ -31,7 +31,7 @@ describe('MembersTableCell', () => { ...@@ -31,7 +31,7 @@ describe('MembersTableCell', () => {
const localVue = createLocalVue(); const localVue = createLocalVue();
localVue.use(Vuex); localVue.use(Vuex);
localVue.component('wrapped-component', WrappedComponent); localVue.component('WrappedComponent', WrappedComponent);
const createStore = (state = {}) => { const createStore = (state = {}) => {
return new Vuex.Store({ return new Vuex.Store({
......
...@@ -5,7 +5,7 @@ import TrackEvent from '~/vue_shared/directives/track_event'; ...@@ -5,7 +5,7 @@ import TrackEvent from '~/vue_shared/directives/track_event';
jest.mock('~/tracking'); jest.mock('~/tracking');
const Component = Vue.component('dummy-element', { const Component = Vue.component('DummyElement', {
directives: { directives: {
TrackEvent, TrackEvent,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment