diff --git a/cypress/e2e/mixins/oddname.ts b/cypress/e2e/mixins/oddname.ts index 5c633a612..0ab53d662 100644 --- a/cypress/e2e/mixins/oddname.ts +++ b/cypress/e2e/mixins/oddname.ts @@ -43,7 +43,7 @@ function naughtyFileName(realName) { } let failsLeft = 5 -Cypress.on('fail', (error, runnable) => { +Cypress.on('fail', (error) => { failsLeft-- throw error // throw error to have test still fail }) diff --git a/src/components/Images.vue b/src/components/Images.vue index 46b1af356..2a80277fe 100644 --- a/src/components/Images.vue +++ b/src/components/Images.vue @@ -263,7 +263,7 @@ export default { }, // Fallback to the original image if not already done - onFail(event) { + onFail() { if (!this.fallback) { console.error(`Loading of file preview ${basename(this.src)} failed, falling back to original file`) this.fallback = true diff --git a/src/components/Videos.vue b/src/components/Videos.vue index 6a3829315..7762bd5fd 100644 --- a/src/components/Videos.vue +++ b/src/components/Videos.vue @@ -141,7 +141,7 @@ export default { }, methods: { - hideHeaderAndFooter(e) { + hideHeaderAndFooter() { // work arround to get the state of the fullscreen button, aria-selected attribute is not reliable this.isFullscreenButtonVisible = !this.isFullscreenButtonVisible if (this.isFullscreenButtonVisible) { diff --git a/src/services/Viewer.js b/src/services/Viewer.js index d50588f1f..c1035a391 100644 --- a/src/services/Viewer.js +++ b/src/services/Viewer.js @@ -102,7 +102,7 @@ export default class Viewer { this._state.handlers.push(handler) const handledMimes = [ ...handler.mimes, - ...Object.keys(handler.mimesAliases || {}) + ...Object.keys(handler.mimesAliases || {}), ] this._mimetypes.push.apply(this._mimetypes, handledMimes) if (handler?.canCompare === true) { diff --git a/src/utils/numberUtil.ts b/src/utils/numberUtil.ts index 9a70aa7ea..2f75785cf 100644 --- a/src/utils/numberUtil.ts +++ b/src/utils/numberUtil.ts @@ -20,7 +20,7 @@ * */ -const isNumber = function(num: any): boolean { +const isNumber = function(num): boolean { if (!num) { return false } diff --git a/src/views/Viewer.vue b/src/views/Viewer.vue index ca8956ee8..51e4a69e6 100644 --- a/src/views/Viewer.vue +++ b/src/views/Viewer.vue @@ -510,7 +510,7 @@ export default { beforeMount() { // register on load - document.addEventListener('DOMContentLoaded', event => { + document.addEventListener('DOMContentLoaded', () => { // register all primary components mimes this.handlers.forEach(handler => { this.registerHandler(handler)