Skip to content

Commit 37ab534

Browse files
kingyue737antfu
andauthoredMar 25, 2024··
fix(eslint-config): enable vue/multi-word-component-names for files directly under components (#360)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
1 parent d8799be commit 37ab534

File tree

4 files changed

+2
-201
lines changed

4 files changed

+2
-201
lines changed
 

Diff for: ‎docs/components/Illustration.vue

-199
This file was deleted.
File renamed without changes.

Diff for: ‎docs/components/OgImage/OgImageDocs.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ defineProps({
3838
{{ description }}
3939
</p>
4040
</div>
41-
<Logo class="h-[60px] w-[492px] text-white" />
41+
<NuxtLogo class="h-[60px] w-[492px] text-white" />
4242
</div>
4343
</template>

Diff for: ‎packages/eslint-config/src/flat/configs/disables.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function disables(options: NuxtESLintConfigOptions): FlatConfig[]
1818
...(dirs.pages?.map(pagesDir => join(pagesDir, nestedGlobPattern)) || []),
1919

2020
// These files should have multiple words in their names as they are within subdirectories.
21-
...(dirs.components?.map(componentsDir => join(componentsDir, nestedGlobPattern)) || []),
21+
...(dirs.components?.map(componentsDir => join(componentsDir, '*', nestedGlobPattern)) || []),
2222
]
2323

2424
const configs: FlatConfig[] = []

0 commit comments

Comments
 (0)
Please sign in to comment.