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/hotkey-util.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/input/hotkey-util.js')
-rw-r--r-- | ext/js/input/hotkey-util.js | 10 |
1 files changed, 5 insertions, 5 deletions
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'], ]; } } |