[web] Remove lint rule

This commit is contained in:
Alain Nussbaumer 2025-06-02 20:06:17 +02:00
parent 99ef7b8dfc
commit 5018cc4544
3 changed files with 4 additions and 7 deletions

View File

@ -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',

View File

@ -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',

View File

@ -21,7 +21,7 @@ export default {
stop() {
try {
this.audio?.pause()
} catch (error) {
} catch {
// Do nothing
}
}