mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-20 14:01:17 -04:00
[web] Remove lint rule
This commit is contained in:
parent
99ef7b8dfc
commit
5018cc4544
@ -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',
|
||||||
|
@ -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',
|
||||||
|
@ -21,7 +21,7 @@ export default {
|
|||||||
stop() {
|
stop() {
|
||||||
try {
|
try {
|
||||||
this.audio?.pause()
|
this.audio?.pause()
|
||||||
} catch (error) {
|
} catch {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user