Skip to content

Commit

Permalink
fix(eslint-config): enable vue/multi-word-component-names for files…
Browse files Browse the repository at this point in the history
… directly under `components` (#360)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
kingyue737 and antfu committed Mar 25, 2024
1 parent d8799be commit 37ab534
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 201 deletions.
199 changes: 0 additions & 199 deletions docs/components/Illustration.vue

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion docs/components/OgImage/OgImageDocs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ defineProps({
{{ description }}
</p>
</div>
<Logo class="h-[60px] w-[492px] text-white" />
<NuxtLogo class="h-[60px] w-[492px] text-white" />
</div>
</template>
2 changes: 1 addition & 1 deletion packages/eslint-config/src/flat/configs/disables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function disables(options: NuxtESLintConfigOptions): FlatConfig[]
...(dirs.pages?.map(pagesDir => join(pagesDir, nestedGlobPattern)) || []),

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

const configs: FlatConfig[] = []
Expand Down

0 comments on commit 37ab534

Please sign in to comment.