diff options
author | James Maa <jmaa@berkeley.edu> | 2024-05-31 08:06:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 15:06:52 +0000 |
commit | 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch) | |
tree | bdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/input | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/input')
-rw-r--r-- | ext/js/input/hotkey-handler.js | 4 | ||||
-rw-r--r-- | ext/js/input/hotkey-help-controller.js | 2 | ||||
-rw-r--r-- | ext/js/input/hotkey-util.js | 10 |
3 files changed, 8 insertions, 8 deletions
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'], ]; } } |