From 765f1ede668f70e3af7717bf4d5f05dbf009c7f8 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 10 Feb 2024 23:12:01 -0500 Subject: Eslint rule updates (#665) * Padding newline rules * Update rules * Update rules * Update rules * Updates * Update object quotes * Merge similar ts and js rules * Change export spacing rules * Move typescript-eslint rules * Spacing * Actually save and commit changes --- ext/js/display/display-audio.js | 6 ++++-- ext/js/display/display.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'ext/js/display') diff --git a/ext/js/display/display-audio.js b/ext/js/display/display-audio.js index deaa0976..7d75d6b0 100644 --- a/ext/js/display/display-audio.js +++ b/ext/js/display/display-audio.js @@ -514,8 +514,10 @@ export class DisplayAudio { !canToggleOff || primaryCardAudio === null || primaryCardAudio.index !== index || - primaryCardAudio.subIndex !== subIndex - ) ? {index: index, subIndex} : null; + primaryCardAudio.subIndex !== subIndex ? + {index: index, subIndex} : + null + ); cacheEntry.primaryCardAudio = primaryCardAudio; if (menu !== null) { diff --git a/ext/js/display/display.js b/ext/js/display/display.js index f05feac8..a5dad2d1 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -806,8 +806,10 @@ export class Display extends EventDispatcher { const historyMode = ( eventType === 'click' || !(typeof historyState === 'object' && historyState !== null) || - historyState.cause !== 'queryParser' - ) ? 'new' : 'overwrite'; + historyState.cause !== 'queryParser' ? + 'new' : + 'overwrite' + ); /** @type {import('display').ContentDetails} */ const details = { focus: false, -- cgit v1.2.3