From 6289dba190648d908f2e47f7cb292eaed28c89dc Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 10 Oct 2025 13:50:53 +0800 Subject: [PATCH] eslint component casing --- next-ui/eslint.config.ts | 8 ++++++++ next-ui/src/App.vue | 2 +- .../fragments/fragment/history/expand/BookConverted.vue | 2 +- .../fragments/fragment/history/expand/BookFileDeleted.vue | 2 +- .../fragments/fragment/history/expand/BookImported.vue | 2 +- .../fragment/history/expand/SeriesDirectoryDeleted.vue | 2 +- next-ui/src/layouts/default.vue | 2 +- next-ui/src/layouts/single.vue | 2 +- next-ui/src/pages/history.vue | 2 +- 9 files changed, 16 insertions(+), 8 deletions(-) diff --git a/next-ui/eslint.config.ts b/next-ui/eslint.config.ts index 64ca56d8..d525fa27 100644 --- a/next-ui/eslint.config.ts +++ b/next-ui/eslint.config.ts @@ -50,6 +50,14 @@ export default defineConfigWithVueTs( 'no-empty': ['error', { allowEmptyCatch: true }], 'vue/multi-word-component-names': 'off', 'vue/require-default-prop': 'off', + 'vue/component-name-in-template-casing': [ + 'error', + 'PascalCase', + { + registeredComponentsOnly: false, + ignores: ['/^v-/'], + }, + ], }, }, diff --git a/next-ui/src/App.vue b/next-ui/src/App.vue index 01fc75e9..27228cf9 100644 --- a/next-ui/src/App.vue +++ b/next-ui/src/App.vue @@ -1,6 +1,6 @@