diff --git a/web-src/eslint.config.js b/web-src/eslint.config.js index b6f4f3da..05a7b545 100644 --- a/web-src/eslint.config.js +++ b/web-src/eslint.config.js @@ -4,12 +4,10 @@ import js from '@eslint/js' import pluginVue from 'eslint-plugin-vue' export default [ - { - files: ['**/*.js', 'src/**/*.vue'], - languageOptions: { globals: { ...globals.browser, ...globals.node } } - }, ...pluginVue.configs['flat/recommended'], { + files: ['**/*.js', 'src/**/*.vue'], + languageOptions: { globals: { ...globals.browser, ...globals.node } }, rules: { ...eslintConfigPrettier.rules, ...js.configs.all.rules, @@ -18,7 +16,6 @@ export default [ 'max-lines-per-function': 'off', 'no-bitwise': 'off', 'no-magic-numbers': 'off', - 'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }], 'one-var': 'off', 'sort-keys': 'off', 'vue/html-self-closing': 'off', diff --git a/web-src/src/App.vue b/web-src/src/App.vue index cff53432..5982b71e 100644 --- a/web-src/src/App.vue +++ b/web-src/src/App.vue @@ -114,7 +114,7 @@ export default { this.uiStore.hideSingles = this.configurationStore.hide_singles document.title = this.configurationStore.library_name this.openWebsocket() - } catch (e) { + } catch { this.notificationsStore.add({ text: this.$t('server.connection-failed'), topic: 'connection', diff --git a/web-src/src/lib/Audio.js b/web-src/src/lib/Audio.js index 295ad6b9..a2f0033c 100644 --- a/web-src/src/lib/Audio.js +++ b/web-src/src/lib/Audio.js @@ -21,7 +21,7 @@ export default { stop() { try { this.audio?.pause() - } catch (error) { + } catch { // Do nothing } }