From 049373de3ba6a48153c3bd3b6c02253f2a4aa338 Mon Sep 17 00:00:00 2001
From: Kagami Sascha Rosylight
Date: Thu, 22 Dec 2022 16:51:48 +0900
Subject: [PATCH] style(client): fix `vue/v-on-event-hyphenation` (#9389)
---
packages/client/.eslintrc.js | 2 ++
packages/client/src/components/MkDrive.vue | 12 ++++++------
.../src/components/MkDriveSelectDialog.vue | 2 +-
.../client/src/components/MkPollEditor.vue | 2 +-
packages/client/src/components/MkPostForm.vue | 2 +-
.../src/components/MkPostFormAttaches.vue | 2 +-
packages/client/src/components/MkSignin.vue | 2 +-
packages/client/src/components/MkSignup.vue | 8 ++++----
.../client/src/components/MkSignupDialog.vue | 2 +-
.../src/components/MkUserSelectDialog.vue | 4 ++--
packages/client/src/components/MkWidgets.vue | 6 +++---
.../src/components/page/page.number-input.vue | 2 +-
.../src/components/page/page.radio-button.vue | 2 +-
.../client/src/components/page/page.switch.vue | 2 +-
.../src/components/page/page.text-input.vue | 2 +-
.../components/page/page.textarea-input.vue | 2 +-
packages/client/src/pages/admin-file.vue | 2 +-
packages/client/src/pages/admin/security.vue | 4 ++--
packages/client/src/pages/admin/users.vue | 4 ++--
packages/client/src/pages/api-console.vue | 2 +-
packages/client/src/pages/instance-info.vue | 4 ++--
packages/client/src/pages/settings/2fa.vue | 2 +-
packages/client/src/pages/settings/drive.vue | 4 ++--
packages/client/src/pages/settings/email.vue | 2 +-
.../src/pages/settings/notifications.vue | 2 +-
packages/client/src/pages/settings/other.vue | 2 +-
packages/client/src/pages/settings/plugin.vue | 2 +-
packages/client/src/pages/settings/privacy.vue | 18 +++++++++---------
packages/client/src/pages/user-info.vue | 6 +++---
29 files changed, 55 insertions(+), 53 deletions(-)
diff --git a/packages/client/.eslintrc.js b/packages/client/.eslintrc.js
index c3a78bd5f..6c3bfb5a6 100644
--- a/packages/client/.eslintrc.js
+++ b/packages/client/.eslintrc.js
@@ -61,6 +61,8 @@ module.exports = {
'vue/max-attributes-per-line': 'off',
'vue/html-self-closing': 'off',
'vue/singleline-html-element-content-newline': 'off',
+ // (vue/vue3-recommended disabled the autofix for Vue 2 compatibility)
+ 'vue/v-on-event-hyphenation': ['warn', 'always', { autofix: true }],
},
globals: {
// Node.js
diff --git a/packages/client/src/components/MkDrive.vue b/packages/client/src/components/MkDrive.vue
index c91fc95ab..405387095 100644
--- a/packages/client/src/components/MkDrive.vue
+++ b/packages/client/src/components/MkDrive.vue
@@ -7,8 +7,8 @@
:parent-folder="folder"
@move="move"
@upload="upload"
- @removeFile="removeFile"
- @removeFolder="removeFolder"
+ @remove-file="removeFile"
+ @remove-folder="removeFolder"
/>
@@ -17,8 +17,8 @@
:parent-folder="folder"
@move="move"
@upload="upload"
- @removeFile="removeFile"
- @removeFolder="removeFolder"
+ @remove-file="removeFile"
+ @remove-folder="removeFolder"
/>
@@ -48,8 +48,8 @@
@chosen="chooseFolder"
@move="move"
@upload="upload"
- @removeFile="removeFile"
- @removeFolder="removeFolder"
+ @remove-file="removeFile"
+ @remove-folder="removeFolder"
@dragstart="isDragSource = true"
@dragend="isDragSource = false"
/>
diff --git a/packages/client/src/components/MkDriveSelectDialog.vue b/packages/client/src/components/MkDriveSelectDialog.vue
index baab7f132..3ee821b53 100644
--- a/packages/client/src/components/MkDriveSelectDialog.vue
+++ b/packages/client/src/components/MkDriveSelectDialog.vue
@@ -14,7 +14,7 @@
{{ multiple ? ((type === 'file') ? i18n.ts.selectFiles : i18n.ts.selectFolders) : ((type === 'file') ? i18n.ts.selectFile : i18n.ts.selectFolder) }}
({{ number(selected.length) }})
-
+
diff --git a/packages/client/src/components/MkPollEditor.vue b/packages/client/src/components/MkPollEditor.vue
index 4b3bc58ed..556abc5fd 100644
--- a/packages/client/src/components/MkPollEditor.vue
+++ b/packages/client/src/components/MkPollEditor.vue
@@ -5,7 +5,7 @@
-
-
+