From 20876a0bf286ef9d2c09225ff1a4b96cce73746f Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 20 Jan 2022 16:21:08 +0100 Subject: [PATCH] Lint some more code --- client/.eslintrc.js | 6 + .../components/content-forms/ImageForm.vue | 8 +- .../src/components/content-forms/LinkForm.vue | 2 +- .../components/portfolio/ProjectEntryForm.vue | 12 - .../src/components/portfolio/ProjectForm.vue | 2 - .../src/components/portfolio/ProjectList.vue | 6 +- .../components/profile/AvatarUploadForm.vue | 8 +- .../components/profile/ContentBookmark.vue | 1 + client/src/components/rooms/RoomEntry.vue | 5 +- client/src/directives/auto-grow.js | 6 +- .../update-content-bookmark-mutation.js | 2 +- client/src/layouts/DefaultLayout.vue | 2 - client/src/pages/beta-login.vue | 3 +- client/src/pages/createContentBlock.vue | 2 +- client/src/pages/hello.vue | 8 +- client/src/pages/instrument.vue | 1 + client/src/pages/license-activation.vue | 2 +- client/src/pages/me/myTeam.vue | 4 +- client/src/pages/module/module.vue | 9 +- client/src/pages/module/moduleRoom.vue | 2 +- client/src/pages/module/moduleSettings.vue | 2 - client/src/pages/portfolio/portfolio.vue | 3 - client/src/pages/portfolio/project.vue | 2 - client/src/pages/room.vue | 2 +- client/src/pages/snapshot/snapshot.vue | 2 - client/src/pages/start-old.vue | 264 ------------------ client/src/pages/start.vue | 15 - client/src/pages/studentSubmission.vue | 1 + client/src/pages/survey.vue | 8 +- client/src/styles/_nested-content-lists.scss | 1 + client/tests/unit/text-form.spec.js | 8 +- 31 files changed, 39 insertions(+), 360 deletions(-) delete mode 100644 client/src/pages/start-old.vue diff --git a/client/.eslintrc.js b/client/.eslintrc.js index 8f3f4f75..8948e772 100644 --- a/client/.eslintrc.js +++ b/client/.eslintrc.js @@ -9,6 +9,9 @@ module.exports = { env: { browser: true, }, + globals: { + process: "readonly" + }, extends: [ // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. @@ -59,6 +62,9 @@ module.exports = { 'CONTENT' ] }], + "vue/multi-word-component-names": ["off", { + "ignores": [] + }], 'vue/order-in-components': ['error', { 'order': [ 'el', diff --git a/client/src/components/content-forms/ImageForm.vue b/client/src/components/content-forms/ImageForm.vue index 98fcba37..cc003394 100644 --- a/client/src/components/content-forms/ImageForm.vue +++ b/client/src/components/content-forms/ImageForm.vue @@ -69,11 +69,9 @@ this.$emit('link-change-url', fileInfo.cdnUrl, this.index); }); - panelResult.progress(p => { - }); - - panelResult.fail(uploadResult => { - }); + // the api also provides these methods + // panelResult.progress(p => {}); + // panelResult.fail(uploadResult => {}); }); }, switchToDocument() { diff --git a/client/src/components/content-forms/LinkForm.vue b/client/src/components/content-forms/LinkForm.vue index b2a29db9..1948fa55 100644 --- a/client/src/components/content-forms/LinkForm.vue +++ b/client/src/components/content-forms/LinkForm.vue @@ -23,7 +23,7 @@ diff --git a/client/src/components/profile/ContentBookmark.vue b/client/src/components/profile/ContentBookmark.vue index 734e9ad9..2d4998a5 100644 --- a/client/src/components/profile/ContentBookmark.vue +++ b/client/src/components/profile/ContentBookmark.vue @@ -1,5 +1,6 @@