From 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 Mon Sep 17 00:00:00 2001 From: James Maa Date: Fri, 31 May 2024 08:06:52 -0700 Subject: Allow trailing commas in ESLint (#1013) * Update comma-dangle rule * Fix dangling commas --- ext/js/input/hotkey-handler.js | 4 ++-- ext/js/input/hotkey-help-controller.js | 2 +- ext/js/input/hotkey-util.js | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ext/js/input') diff --git a/ext/js/input/hotkey-handler.js b/ext/js/input/hotkey-handler.js index 601a87c9..eacb76bd 100644 --- a/ext/js/input/hotkey-handler.js +++ b/ext/js/input/hotkey-handler.js @@ -52,7 +52,7 @@ export class HotkeyHandler extends EventDispatcher { this._isPrepared = true; this._updateEventHandlers(); crossFrameApi.registerHandlers([ - ['hotkeyHandlerForwardHotkey', this._onMessageForwardHotkey.bind(this)] + ['hotkeyHandlerForwardHotkey', this._onMessageForwardHotkey.bind(this)], ]); } @@ -114,7 +114,7 @@ export class HotkeyHandler extends EventDispatcher { key, modifiers: [...modifiers], scopes: [...scopes], - enabled + enabled, }); } this._updateHotkeyRegistrations(); diff --git a/ext/js/input/hotkey-help-controller.js b/ext/js/input/hotkey-help-controller.js index f85735fc..6b0cfa10 100644 --- a/ext/js/input/hotkey-help-controller.js +++ b/ext/js/input/hotkey-help-controller.js @@ -180,7 +180,7 @@ export class HotkeyHelpController { global, attributes: attributesArray, values, - defaultAttributeValues + defaultAttributeValues, }; } diff --git a/ext/js/input/hotkey-util.js b/ext/js/input/hotkey-util.js index bb3e82a8..e4392e27 100644 --- a/ext/js/input/hotkey-util.js +++ b/ext/js/input/hotkey-util.js @@ -38,7 +38,7 @@ export class HotkeyUtil { ['meta', -4], ['ctrl', -3], ['alt', -2], - ['shift', -1] + ['shift', -1], ]); /** @type {Intl.Collator} */ this._stringComparer = new Intl.Collator('en-US'); // Invariant locale @@ -243,14 +243,14 @@ export class HotkeyUtil { ['alt', 'Alt'], ['ctrl', 'Ctrl'], ['shift', 'Shift'], - ['meta', 'Windows'] + ['meta', 'Windows'], ]; case 'mac': return [ ['alt', 'Opt'], ['ctrl', 'Ctrl'], ['shift', 'Shift'], - ['meta', 'Cmd'] + ['meta', 'Cmd'], ]; case 'linux': case 'openbsd': @@ -260,14 +260,14 @@ export class HotkeyUtil { ['alt', 'Alt'], ['ctrl', 'Ctrl'], ['shift', 'Shift'], - ['meta', 'Super'] + ['meta', 'Super'], ]; default: // 'unknown', etc return [ ['alt', 'Alt'], ['ctrl', 'Ctrl'], ['shift', 'Shift'], - ['meta', 'Meta'] + ['meta', 'Meta'], ]; } } -- cgit v1.2.3