From 8cbea15b2d3db4d89085af964f4c9f9c8e8d40d7 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sun, 22 Dec 2024 02:13:15 -0600 Subject: [PATCH] style: Enforce kebab-cased components --- eslint.config.js | 1 + src/App.vue | 6 +++--- .../NavButtons/{GitHubButton.vue => GithubButton.vue} | 0 src/layouts/ConvertersPage.vue | 4 ++-- src/layouts/PageLayout.vue | 4 ++-- src/views/AboutPage.vue | 6 +++--- src/views/HomePage.vue | 4 ++-- src/views/InteractiveConverter.vue | 4 ++-- src/views/NotFoundPage.vue | 4 ++-- src/views/NumberConverter.vue | 4 ++-- src/views/WordConverter.vue | 4 ++-- 11 files changed, 21 insertions(+), 20 deletions(-) rename src/components/NavButtons/{GitHubButton.vue => GithubButton.vue} (100%) diff --git a/eslint.config.js b/eslint.config.js index 12cabb78..a912518c 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -19,6 +19,7 @@ export default [ rules: { "no-unused-vars": ["error", { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }], "vue/no-template-shadow": "off", + "vue/component-name-in-template-casing": ["error", "kebab-case"], }, }, ]; diff --git a/src/App.vue b/src/App.vue index 8dbfba4f..57cd1962 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,7 +28,7 @@ @@ -48,7 +48,7 @@ - + @@ -67,7 +67,7 @@ import { useRoute, useRouter } from "vue-router"; import { useDisplay, useTheme } from "vuetify"; import { computed, onBeforeMount } from "vue"; import UpdateSnackbar from "./components/UpdateSnackbar.vue"; -import GitHubButton from "./components/NavButtons/GitHubButton.vue"; +import GithubButton from "./components/NavButtons/GithubButton.vue"; const { smAndDown: isMobile } = useDisplay(); diff --git a/src/components/NavButtons/GitHubButton.vue b/src/components/NavButtons/GithubButton.vue similarity index 100% rename from src/components/NavButtons/GitHubButton.vue rename to src/components/NavButtons/GithubButton.vue diff --git a/src/layouts/ConvertersPage.vue b/src/layouts/ConvertersPage.vue index d7ec9a7b..0244289d 100644 --- a/src/layouts/ConvertersPage.vue +++ b/src/layouts/ConvertersPage.vue @@ -1,5 +1,5 @@ diff --git a/src/views/AboutPage.vue b/src/views/AboutPage.vue index a2e49d67..cc599364 100644 --- a/src/views/AboutPage.vue +++ b/src/views/AboutPage.vue @@ -1,5 +1,5 @@