Skip to content

Commit 1b660de

Browse files
committed
vue/component-name-in-template-casing が script setup に対応した
vuejs/eslint-plugin-vue#1934
1 parent d9f76a0 commit 1b660de

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@typescript-eslint/ban-types": "error",
1111
"vue/no-side-effects-in-computed-properties": "error",
1212
"vue/html-self-closing": ["error", { "html": { "void": "always" } }],
13-
"vue/component-name-in-template-casing": ["error", "kebab-case"], // script setup では動かない? https://github.com/vuejs/eslint-plugin-vue/issues/1629
13+
"vue/component-name-in-template-casing": ["error", "kebab-case"],
1414
"vue/no-duplicate-attr-inheritance": "error",
1515
"vue/no-template-target-blank": "error",
1616
// "vue/no-unused-properties": "error", // defineProps で意図ぜず error になる

components/common/Links.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import SvgIcon from '@/components/common/SvgIcon.vue'
55
<template>
66
<aside class="flex items-center gap-2">
77
<a href="https://kkeisuke.com" target="_blank" rel="noopener noreferrer" aria-label="home">
8-
<SvgIcon icon="home" class="w-6 h-6" />
8+
<svg-icon icon="home" class="w-6 h-6" />
99
</a>
1010
<a href="https://github.com/kkeisuke" target="_blank" rel="noopener noreferrer" aria-label="github">
11-
<SvgIcon icon="github" class="w-6 h-6" />
11+
<svg-icon icon="github" class="w-6 h-6" />
1212
</a>
1313
<a href="https://twitter.com/kkeisuke" target="_blank" rel="noopener noreferrer" aria-label="twitter">
14-
<SvgIcon icon="twitter" class="w-6 h-6" />
14+
<svg-icon icon="twitter" class="w-6 h-6" />
1515
</a>
1616
</aside>
1717
</template>

pages/404.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const { title } = useRuntimeConfig().public
88

99
<template>
1010
<main>
11-
<ArticleBlogTitle :title="title" class="mb-10" />
11+
<article-blog-title :title="title" class="mb-10" />
1212
<!-- path が無いと、generate 時に取得できない -->
1313
<ContentDoc path="/404" class="nuxt-content" tag="section" />
14-
<Links class="pt-4" />
14+
<links class="pt-4" />
1515
</main>
1616
</template>
1717

pages/articles/[...slug].vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ article.value && useHead({
2626

2727
<template>
2828
<main>
29-
<ArticleBlogTitle :title="title" class="mb-10" />
29+
<article-blog-title :title="title" class="mb-10" />
3030
<article>
3131
<template v-if="article">
32-
<ArticleHeader :title="article.title" :date="article.date" class="mb-10" />
32+
<article-header :title="article.title" :date="article.date" class="mb-10" />
3333
<ContentRenderer :value="article" class="nuxt-content" />
3434
</template>
3535
<template v-else>
3636
<ContentDoc path="/404" class="nuxt-content" tag="section" />
3737
</template>
3838
</article>
39-
<Links class="pt-4" />
39+
<links class="pt-4" />
4040
</main>
4141
</template>
4242

pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ useHead({
1616

1717
<template>
1818
<main>
19-
<BlogTitle :title="title" class="mb-4" />
20-
<Links />
21-
<ArticleList v-for="article in articles" :key="article._path" :article="article" class="mt-8" />
19+
<blog-title :title="title" class="mb-4" />
20+
<links />
21+
<article-list v-for="article in articles" :key="article._path" :article="article" class="mt-8" />
2222
<aside class="pt-24">
2323
<p>2019年以前は <a href="https://kkeisuke.hatenablog.com/archive" target="_blank" rel="noopener noreferrer">はてなブログ</a> へ</p>
2424
</aside>

0 commit comments

Comments
 (0)