[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' import pluginVue from 'eslint-plugin-vue'
export default [ export default [
{
files: ['**/*.js', 'src/**/*.vue'],
languageOptions: { globals: { ...globals.browser, ...globals.node } }
},
...pluginVue.configs['flat/recommended'], ...pluginVue.configs['flat/recommended'],
{ {
files: ['**/*.js', 'src/**/*.vue'],
languageOptions: { globals: { ...globals.browser, ...globals.node } },
rules: { rules: {
...eslintConfigPrettier.rules, ...eslintConfigPrettier.rules,
...js.configs.all.rules, ...js.configs.all.rules,
@ -18,7 +16,6 @@ export default [
'max-lines-per-function': 'off', 'max-lines-per-function': 'off',
'no-bitwise': 'off', 'no-bitwise': 'off',
'no-magic-numbers': 'off', 'no-magic-numbers': 'off',
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }],
'one-var': 'off', 'one-var': 'off',
'sort-keys': 'off', 'sort-keys': 'off',
'vue/html-self-closing': 'off', 'vue/html-self-closing': 'off',

View File

@ -114,7 +114,7 @@ export default {
this.uiStore.hideSingles = this.configurationStore.hide_singles this.uiStore.hideSingles = this.configurationStore.hide_singles
document.title = this.configurationStore.library_name document.title = this.configurationStore.library_name
this.openWebsocket() this.openWebsocket()
} catch (e) { } catch {
this.notificationsStore.add({ this.notificationsStore.add({
text: this.$t('server.connection-failed'), text: this.$t('server.connection-failed'),
topic: 'connection', topic: 'connection',

View File

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