Skip to content

Commit

Permalink
style: Enforce kebab-cased components
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Dec 22, 2024
1 parent fd3eaf4 commit 8cbea15
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
},
];
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<template #append>
<div class="d-flex overflow-hidden">
<GitHubButton />
<github-button />
</div>
</template>
</v-navigation-drawer>
Expand All @@ -48,7 +48,7 @@
</template>
</v-bottom-navigation>

<UpdateSnackbar />
<update-snackbar />

<v-main>
<span id="content" class="anchor" />
Expand All @@ -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();
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/layouts/ConvertersPage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<PageLayout>
<page-layout>
<v-row v-if="error">
<v-col>
<v-alert type="error">{{ error }}</v-alert>
Expand All @@ -11,7 +11,7 @@
<slot />
</v-col>
</v-row>
</PageLayout>
</page-layout>
</template>

<script setup>
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/PageLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</v-btn>
</template>
<template #append>
<GitHubButton v-if="isMobile" />
<github-button v-if="isMobile" />
</template>
</v-app-bar>

Expand All @@ -27,7 +27,7 @@
<script setup>
import AppIcon from "~icons/mnemonic-ninja/logo";
import { useDisplay } from "vuetify";
import GitHubButton from "../components/NavButtons/GitHubButton.vue";
import GithubButton from "../components/NavButtons/GithubButton.vue";
const { smAndDown: isMobile } = useDisplay();
</script>
6 changes: 3 additions & 3 deletions src/views/AboutPage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<PageLayout>
<page-layout>
<template #description>
The
<a href="https://en.wikipedia.org/wiki/Mnemonic_major_system" target="_blank"
Expand Down Expand Up @@ -29,7 +29,7 @@
>Wikipedia page</a
>, here are the numbers and their corresponding sounds:
</p>
<RulesTable />
<rules-table />
</v-col>
</v-row>
<v-row tag="section">
Expand Down Expand Up @@ -126,7 +126,7 @@
</p>
</v-col>
</v-row>
</PageLayout>
</page-layout>
</template>

<script setup>
Expand Down
4 changes: 2 additions & 2 deletions src/views/HomePage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<PageLayout>
<page-layout>
<template #description>
The
<a href="https://en.wikipedia.org/wiki/Mnemonic_major_system" target="_blank"
Expand Down Expand Up @@ -36,7 +36,7 @@
/>
</v-col>
</v-row>
</PageLayout>
</page-layout>
</template>

<script setup>
Expand Down
4 changes: 2 additions & 2 deletions src/views/InteractiveConverter.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ConvertersPage>
<converters-page>
<v-form v-model="valid" @submit.prevent>
<v-container>
<v-row>
Expand Down Expand Up @@ -52,7 +52,7 @@
</v-row>
</v-container>
</v-form>
</ConvertersPage>
</converters-page>
</template>

<script setup>
Expand Down
4 changes: 2 additions & 2 deletions src/views/NotFoundPage.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<PageLayout>
<page-layout>
<template #description> Oh no! The requested file could not be located. </template>
</PageLayout>
</page-layout>
</template>

<script setup lang="ts">
Expand Down
4 changes: 2 additions & 2 deletions src/views/NumberConverter.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ConvertersPage>
<converters-page>
<v-form v-model="valid">
<v-container>
<v-row>
Expand Down Expand Up @@ -56,7 +56,7 @@
</v-row>
</v-container>
</v-form>
</ConvertersPage>
</converters-page>
</template>

<script setup>
Expand Down
4 changes: 2 additions & 2 deletions src/views/WordConverter.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ConvertersPage>
<converters-page>
<v-form v-model="valid">
<v-container>
<v-row>
Expand Down Expand Up @@ -61,7 +61,7 @@
</v-row>
</v-container>
</v-form>
</ConvertersPage>
</converters-page>
</template>

<script setup>
Expand Down

0 comments on commit 8cbea15

Please sign in to comment.