summaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/generic-setting-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/generic-setting-controller.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/pages/settings/generic-setting-controller.js')
-rw-r--r--ext/js/pages/settings/generic-setting-controller.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/pages/settings/generic-setting-controller.js b/ext/js/pages/settings/generic-setting-controller.js
index 812520e4..15b3a6b1 100644
--- a/ext/js/pages/settings/generic-setting-controller.js
+++ b/ext/js/pages/settings/generic-setting-controller.js
@@ -36,7 +36,7 @@ export class GenericSettingController {
this._createElementMetadata.bind(this),
this._compareElementMetadata.bind(this),
this._getValues.bind(this),
- this._setValues.bind(this)
+ this._setValues.bind(this),
);
/** @type {Map<import('generic-setting-controller').TransformType, import('generic-setting-controller').TransformFunction>} */
this._transforms = new Map(/** @type {[key: import('generic-setting-controller').TransformType, value: import('generic-setting-controller').TransformFunction][]} */ ([
@@ -47,7 +47,7 @@ export class GenericSettingController {
['toNumber', this._toNumber.bind(this)],
['toBoolean', this._toBoolean.bind(this)],
['toString', this._toString.bind(this)],
- ['conditionalConvert', this._conditionalConvert.bind(this)]
+ ['conditionalConvert', this._conditionalConvert.bind(this)],
]));
}
@@ -82,7 +82,7 @@ export class GenericSettingController {
path,
scope: scope2 !== null ? scope2 : this._defaultScope,
transforms: this._getTransformDataArray(transformRaw),
- transformRaw
+ transformRaw,
};
}
@@ -112,7 +112,7 @@ export class GenericSettingController {
const target = {
path,
scope: typeof scope === 'string' ? scope : defaultScope,
- optionsContext: null
+ optionsContext: null,
};
settingsTargets.push(target);
}
@@ -135,7 +135,7 @@ export class GenericSettingController {
scope: typeof scope === 'string' ? scope : defaultScope,
action: 'set',
value: transformedValue,
- optionsContext: null
+ optionsContext: null,
};
settingsTargets.push(target);
}