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" /> @@ -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 @@