diff --git a/web-src/eslint.config.js b/web-src/eslint.config.js index afb0c67c..e1e6bede 100644 --- a/web-src/eslint.config.js +++ b/web-src/eslint.config.js @@ -33,7 +33,6 @@ export default [ 'no-ternary': 'off', 'no-undef': 'off', 'no-undefined': 'off', - 'no-unused-expressions': 'off', 'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }], 'no-useless-assignment': 'off', 'one-var': 'off', diff --git a/web-src/src/components/LyricsPane.vue b/web-src/src/components/LyricsPane.vue index 9bf2e197..2b555cad 100644 --- a/web-src/src/components/LyricsPane.vue +++ b/web-src/src/components/LyricsPane.vue @@ -129,9 +129,11 @@ export default { ) { return index } - currentVerse.time < currentTime - ? (start = index + 1) - : (end = index - 1) + if (currentVerse.time < currentTime) { + start = index + 1 + } else { + end = index - 1 + } } return -1 } @@ -141,7 +143,9 @@ export default { }, watch: { verse_index() { - this.autoScrolling && this.scroll_to_verse() + if (this.autoScrolling) { + this.scroll_to_verse() + } this.lastIndex = this.verse_index } },