diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json index ba4fcdfd..16e44c88 100644 --- a/frontend/.eslintrc.json +++ b/frontend/.eslintrc.json @@ -3,7 +3,7 @@ "env": { "node": true }, - "parser": "@typescript-eslint/parser", + "parser": "vue-eslint-parser", "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", @@ -15,10 +15,13 @@ "rules": { "vue/multi-word-component-names": "off", "vue/no-reserved-component-names": "warn", - "vue/no-mutating-props": "warn" + "vue/no-mutating-props": "warn", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/ban-ts-comment": "off" }, "parserOptions": { "ecmaVersion": "latest", - "sourceType": "module" + "sourceType": "module", + "parser": "@typescript-eslint/parser" } } diff --git a/frontend/src/stores/file.ts b/frontend/src/stores/file.ts index e9f906f0..8ee590c9 100644 --- a/frontend/src/stores/file.ts +++ b/frontend/src/stores/file.ts @@ -41,7 +41,7 @@ export const useFileStore = defineStore("file", { this.req = value; }, removeSelected(value: any) { - let i = this.selected.indexOf(value); + const i = this.selected.indexOf(value); if (i === -1) return; this.selected.splice(i, 1); }, diff --git a/frontend/src/stores/layout.ts b/frontend/src/stores/layout.ts index a10efb07..83f5d9a0 100644 --- a/frontend/src/stores/layout.ts +++ b/frontend/src/stores/layout.ts @@ -7,7 +7,7 @@ export const useLayoutStore = defineStore("layout", { state: (): { loading: boolean, show: string | null | boolean, - showConfirm: Function | null, + showConfirm: any, showAction: boolean | null, showShell: boolean | null } => ({ diff --git a/frontend/src/stores/upload.ts b/frontend/src/stores/upload.ts index 2e3a3e52..6c86ba6f 100644 --- a/frontend/src/stores/upload.ts +++ b/frontend/src/stores/upload.ts @@ -50,7 +50,7 @@ export const useUploadStore = defineStore("upload", { filesInUpload: (state) => { const files = []; - for (let index in state.uploads) { + for (const index in state.uploads) { const upload = state.uploads[index]; const id = upload.id; const type = upload.type; diff --git a/frontend/src/types/global.d.ts b/frontend/src/types/global.d.ts index 5366524c..8f8d3240 100644 --- a/frontend/src/types/global.d.ts +++ b/frontend/src/types/global.d.ts @@ -5,7 +5,4 @@ declare global { FileBrowser: any; grecaptcha: any } - interface HTMLAttributes extends HTMLAttributes { - title: any - } } \ No newline at end of file diff --git a/frontend/src/views/Files.vue b/frontend/src/views/Files.vue index a206f7d1..e23a7467 100644 --- a/frontend/src/views/Files.vue +++ b/frontend/src/views/Files.vue @@ -22,7 +22,6 @@ \ No newline at end of file