aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/scan-inputs-simple-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/scan-inputs-simple-controller.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/pages/settings/scan-inputs-simple-controller.js')
-rw-r--r--ext/js/pages/settings/scan-inputs-simple-controller.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/pages/settings/scan-inputs-simple-controller.js b/ext/js/pages/settings/scan-inputs-simple-controller.js
index 53a52922..ca9bb22d 100644
--- a/ext/js/pages/settings/scan-inputs-simple-controller.js
+++ b/ext/js/pages/settings/scan-inputs-simple-controller.js
@@ -132,7 +132,7 @@ export class ScanInputsSimpleController {
*/
_populateSelect(select, hasOther) {
const modifierKeys = [
- {value: 'none', name: 'No key'}
+ {value: 'none', name: 'No key'},
];
for (const value of /** @type {import('input').ModifierKey[]} */ (['alt', 'ctrl', 'shift', 'meta'])) {
const name = this._hotkeyUtil.getModifierDisplayValue(value);
@@ -182,7 +182,7 @@ export class ScanInputsSimpleController {
path: 'scanning.inputs',
start: insertionPosition,
deleteCount: 0,
- items: [input]
+ items: [input],
}]);
} else {
// Modify existing
@@ -192,7 +192,7 @@ export class ScanInputsSimpleController {
path: 'scanning.inputs',
start: index,
deleteCount: 1,
- items: []
+ items: [],
}]);
}
}
@@ -218,14 +218,14 @@ export class ScanInputsSimpleController {
path: 'scanning.inputs',
start: inputs.length,
deleteCount: 0,
- items: [input]
+ items: [input],
}]);
} else {
// Modify existing
await this._modifyProfileSettings([{
action: 'set',
path: `scanning.inputs[${index}].include`,
- value: value2
+ value: value2,
}]);
}
}