diff --git a/__mocks__/maska.ts b/__mocks__/maska.ts index 2e6733afbf..ad0d93c879 100644 --- a/__mocks__/maska.ts +++ b/__mocks__/maska.ts @@ -1,8 +1,8 @@ /** * This is a mock for the vMaska directive exported by maska package. */ +import { Jest as jest } from "@jest/environment"; -// eslint-disable-next-line no-undef const vMaska = jest.fn(); export { vMaska }; diff --git a/eslint.config.js b/eslint.config.js index 901e9afb46..2cf7696a36 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -140,4 +140,10 @@ module.exports = [ }, }, }, + { + files: ["src/components/icons/material/index.ts"], + rules: { + "schulcloud/material-icon-imports": "off", + }, + }, ]; diff --git a/src/components/administration/external-tool-section-utils.composable.unit.ts b/src/components/administration/external-tool-section-utils.composable.unit.ts index e02f920aea..944ebb1fb4 100644 --- a/src/components/administration/external-tool-section-utils.composable.unit.ts +++ b/src/components/administration/external-tool-section-utils.composable.unit.ts @@ -6,7 +6,6 @@ import { } from "@/serverApi/v3"; import { SchoolExternalTool } from "@/store/external-tool"; import SchoolExternalToolsModule from "@/store/school-external-tools"; -import { DataTableHeader } from "@/types/vuetify"; import { schoolExternalToolFactory, schoolExternalToolResponseFactory, diff --git a/src/components/external-tools/configuration/ExternalToolConfigurator.vue b/src/components/external-tools/configuration/ExternalToolConfigurator.vue index d92ffcb695..72e5d2c0a4 100644 --- a/src/components/external-tools/configuration/ExternalToolConfigurator.vue +++ b/src/components/external-tools/configuration/ExternalToolConfigurator.vue @@ -336,7 +336,7 @@ const pasteFromClipboard = async () => { await nextTick(); updateSearchInput(text); - } catch (err) { + } catch { notifierModule.show({ text: t("pages.tool.select.clipboard.error"), status: "error", diff --git a/src/components/external-tools/configuration/external-tool-url-insertion.composable.ts b/src/components/external-tools/configuration/external-tool-url-insertion.composable.ts index 3654701270..cdcb42f0ef 100644 --- a/src/components/external-tools/configuration/external-tool-url-insertion.composable.ts +++ b/src/components/external-tools/configuration/external-tool-url-insertion.composable.ts @@ -5,7 +5,7 @@ export function useExternalToolUrlInsertion() { try { new URL(text); return true; - } catch (err) { + } catch { return false; } }; diff --git a/src/components/icons/material/index.ts b/src/components/icons/material/index.ts index 8a642963d5..e15593b60e 100644 --- a/src/components/icons/material/index.ts +++ b/src/components/icons/material/index.ts @@ -1,4 +1,3 @@ -/* eslint-disable schulcloud/material-icon-imports */ import { mdiAccountBoxOutline, mdiAccountEditOutline, diff --git a/src/components/lern-store/LernstoreCollectionDetailView.vue b/src/components/lern-store/LernstoreCollectionDetailView.vue index 8db9074959..587a903ccb 100644 --- a/src/components/lern-store/LernstoreCollectionDetailView.vue +++ b/src/components/lern-store/LernstoreCollectionDetailView.vue @@ -267,7 +267,7 @@ export default defineComponent({ // Clears the previous collection elements before rendering the new ones contentModule.clearElements(); await contentModule.getElements(this.query); - } catch (error) { + } catch { notifierModule.show({ text: this.$t("pages.content.notification.lernstoreNotAvailable"), status: "error", diff --git a/src/components/lern-store/LernstoreDetailView.vue b/src/components/lern-store/LernstoreDetailView.vue index 44cc93a208..3a42c5ed17 100644 --- a/src/components/lern-store/LernstoreDetailView.vue +++ b/src/components/lern-store/LernstoreDetailView.vue @@ -41,7 +41,6 @@