From d098fac602e1136be7587a4d1d67800b956f0a94 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 25 Jul 2025 16:20:37 +0800 Subject: [PATCH] eslint use vue flat/recommended --- next-ui/eslint.config.ts | 3 ++- next-ui/src/components/apikey/DeletionWarning.vue | 2 +- next-ui/src/components/apikey/ForceSyncWarning.vue | 2 +- next-ui/src/components/dialog/Confirm.vue | 4 ++-- next-ui/src/components/dialog/ConfirmEdit.vue | 2 +- next-ui/src/components/server/Settings.vue | 14 +++++++------- next-ui/src/components/user/DeletionWarning.vue | 2 +- next-ui/src/components/user/Details.vue | 2 +- next-ui/src/fragments/fragment/ThemeSelector.vue | 2 +- .../fragments/fragment/apikey/GenerateDialog.vue | 8 ++++---- next-ui/src/fragments/fragment/apikey/Table.vue | 4 ++-- .../src/fragments/fragment/dialog/ConfirmEdit.vue | 4 ++-- .../fragment/user/AuthenticationActivityTable.vue | 2 +- next-ui/src/fragments/fragment/user/Table.vue | 6 +++--- .../fragments/fragment/user/form/CreateEdit.vue | 2 +- next-ui/src/pages/login.vue | 2 +- next-ui/src/pages/server/settings.vue | 2 +- 17 files changed, 32 insertions(+), 31 deletions(-) diff --git a/next-ui/eslint.config.ts b/next-ui/eslint.config.ts index bb5b276d..c2101a33 100644 --- a/next-ui/eslint.config.ts +++ b/next-ui/eslint.config.ts @@ -30,7 +30,7 @@ export default defineConfigWithVueTs( ], }, - ...pluginVue.configs['flat/essential'], + ...pluginVue.configs['flat/recommended'], vueTsConfigs.recommendedTypeChecked, { @@ -49,6 +49,7 @@ export default defineConfigWithVueTs( ], 'no-empty': ['error', { allowEmptyCatch: true }], 'vue/multi-word-component-names': 'off', + 'vue/require-default-prop': 'off', }, }, diff --git a/next-ui/src/components/apikey/DeletionWarning.vue b/next-ui/src/components/apikey/DeletionWarning.vue index 9e3a93d4..fe4f7b71 100644 --- a/next-ui/src/components/apikey/DeletionWarning.vue +++ b/next-ui/src/components/apikey/DeletionWarning.vue @@ -4,7 +4,7 @@ variant="tonal" class="mb-4" > - +