From c24872cf34cb76d1e104db0a951daa2c249af011 Mon Sep 17 00:00:00 2001 From: Harsh Date: Fri, 6 Oct 2023 17:24:53 +0530 Subject: [PATCH 1/3] devex: components name instance in pascalcase --- .eslintrc.js | 4 + src/App.vue | 6 +- src/components/CreateGameDialog.vue | 6 +- .../GameView/CannotCounterDialog.vue | 16 ++-- src/components/GameView/CardListSortable.vue | 2 +- src/components/GameView/ChooseTwoDialog.vue | 6 +- .../GameView/ChooseWhetherToCounterDialog.vue | 16 ++-- src/components/GameView/CounterDialog.vue | 4 +- src/components/GameView/FourDialog.vue | 6 +- src/components/GameView/GameCard.vue | 4 +- src/components/GameView/GameDialogs.vue | 16 ++-- src/components/GameView/GameMenu.vue | 6 +- src/components/GameView/GameOverDialog.vue | 4 +- src/components/GameView/GameOverlays.vue | 6 +- .../GameView/GameUnavailableView.vue | 4 +- src/components/GameView/MoveChoiceOverlay.vue | 4 +- .../OpponentRequestedStalemateDialog.vue | 4 +- .../GameView/ReauthenticateDialog.vue | 4 +- src/components/GameView/ScrapDialog.vue | 6 +- .../GameView/SevenDoubleJacksDialog.vue | 8 +- .../GameView/TargetSelectionOverlay.vue | 2 +- src/components/GameView/ThreeDialog.vue | 6 +- src/components/HowItWorksDialog.vue | 8 +- src/components/RulesDialog.vue | 4 +- src/components/StatsLeaderboard.vue | 2 +- src/components/StatsScoringDialog.vue | 10 +-- src/components/StatsUsageChart.vue | 2 +- src/views/GameView.vue | 82 +++++++++---------- src/views/HomeView.vue | 8 +- src/views/LobbyView.vue | 8 +- src/views/LoginView.vue | 2 +- src/views/RulesView.vue | 8 +- src/views/StatsView.vue | 12 +-- 33 files changed, 145 insertions(+), 141 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index f3c89adad..d8bda2b2a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -33,6 +33,10 @@ module.exports = { allowElseIf: true, }, ], + 'vue/component-name-in-template-casing': ['error', 'PascalCase', { + 'registeredComponentsOnly': false, + 'ignores': ['/^v-/'] + }], 'no-case-declarations': 'error', 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', diff --git a/src/App.vue b/src/App.vue index 0dad9fe90..643cae064 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,10 @@ diff --git a/src/components/CreateGameDialog.vue b/src/components/CreateGameDialog.vue index e46d9e485..de698113c 100644 --- a/src/components/CreateGameDialog.vue +++ b/src/components/CreateGameDialog.vue @@ -1,5 +1,5 @@ - +