summaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/keyboard-shortcuts-controller.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/pages/settings/keyboard-shortcuts-controller.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/pages/settings/keyboard-shortcuts-controller.js')
-rw-r--r--ext/js/pages/settings/keyboard-shortcuts-controller.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/js/pages/settings/keyboard-shortcuts-controller.js b/ext/js/pages/settings/keyboard-shortcuts-controller.js
index a6d23d82..fd8bd471 100644
--- a/ext/js/pages/settings/keyboard-shortcuts-controller.js
+++ b/ext/js/pages/settings/keyboard-shortcuts-controller.js
@@ -71,7 +71,7 @@ export class KeyboardShortcutController {
['scanSelectedText', {scopes: new Set(['web'])}],
['scanTextAtSelection', {scopes: new Set(['web'])}],
['scanTextAtCaret', {scopes: new Set(['web'])}],
- ['toggleOption', {scopes: new Set(['popup', 'search']), argument: {template: 'hotkey-argument-setting-path', default: ''}}]
+ ['toggleOption', {scopes: new Set(['popup', 'search']), argument: {template: 'hotkey-argument-setting-path', default: ''}}],
]);
/* eslint-enable @stylistic/no-multi-spaces */
}
@@ -105,7 +105,7 @@ export class KeyboardShortcutController {
path: 'inputs.hotkeys',
start: hotkeys.length,
deleteCount: 0,
- items: [terminationCharacterEntry]
+ items: [terminationCharacterEntry],
}]);
await this._updateOptions();
@@ -128,7 +128,7 @@ export class KeyboardShortcutController {
path: 'inputs.hotkeys',
start: index,
deleteCount: 1,
- items: []
+ items: [],
}]);
await this._updateOptions();
@@ -214,7 +214,7 @@ export class KeyboardShortcutController {
key: null,
modifiers: [],
scopes: ['popup', 'search'],
- enabled: true
+ enabled: true,
};
await this.addEntry(newEntry);
}
@@ -460,13 +460,13 @@ class KeyboardShortcutHotkeyEntry {
{
action: 'set',
path: `${this._basePath}.key`,
- value: key
+ value: key,
},
{
action: 'set',
path: `${this._basePath}.modifiers`,
- value: modifiers
- }
+ value: modifiers,
+ },
]);
}
@@ -490,7 +490,7 @@ class KeyboardShortcutHotkeyEntry {
await this._modifyProfileSettings([{
action: 'set',
path: `${this._basePath}.scopes`,
- value: scopes
+ value: scopes,
}]);
this._updateScopesButton();
@@ -580,18 +580,18 @@ class KeyboardShortcutHotkeyEntry {
{
action: 'set',
path: `${this._basePath}.action`,
- value: this._data.action
+ value: this._data.action,
},
{
action: 'set',
path: `${this._basePath}.argument`,
- value: this._data.argument
+ value: this._data.argument,
},
{
action: 'set',
path: `${this._basePath}.scopes`,
- value: this._data.scopes
- }
+ value: this._data.scopes,
+ },
]);
this._updateScopesButton();
@@ -615,7 +615,7 @@ class KeyboardShortcutHotkeyEntry {
await this._modifyProfileSettings([{
action: 'set',
path: `${this._basePath}.argument`,
- value
+ value,
}]);
}