summaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/profile-conditions-ui.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-16 20:04:56 -0500
committerGitHub <noreply@github.com>2023-12-17 01:04:56 +0000
commitb249627434d3a94420ac4d98c3ce720767e57b43 (patch)
treeec46e2c020c5a63a5c2babf56376f53e288ed7f2 /ext/js/pages/settings/profile-conditions-ui.js
parentdecbc60f7734e739c0e5c41da294f65f9eec92fe (diff)
Update eslint spacing rules (#366)
* Add space-infix-ops rule * Add no-multi-spaces --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
Diffstat (limited to 'ext/js/pages/settings/profile-conditions-ui.js')
-rw-r--r--ext/js/pages/settings/profile-conditions-ui.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/js/pages/settings/profile-conditions-ui.js b/ext/js/pages/settings/profile-conditions-ui.js
index e02d2585..715aeb69 100644
--- a/ext/js/pages/settings/profile-conditions-ui.js
+++ b/ext/js/pages/settings/profile-conditions-ui.js
@@ -50,6 +50,7 @@ export class ProfileConditionsUI extends EventDispatcher {
const normalizeInteger = this._normalizeInteger.bind(this);
const validateFlags = this._validateFlags.bind(this);
const normalizeFlags = this._normalizeFlags.bind(this);
+ /* eslint-disable no-multi-spaces */
/** @type {Map<import('profile-conditions-ui').DescriptorType, import('profile-conditions-ui').Descriptor>} */
this._descriptors = new Map([
[
@@ -105,6 +106,7 @@ export class ProfileConditionsUI extends EventDispatcher {
}
]
]);
+ /* eslint-enable no-multi-spaces */
/** @type {Set<string>} */
this._validFlags = new Set([
'clipboard'
@@ -217,12 +219,12 @@ export class ProfileConditionsUI extends EventDispatcher {
const info = this._getOperatorDetails(type, operator);
const {
- displayName=operator,
- type: type2='string',
- defaultValue='',
- resetDefaultOnChange=false,
- validate=null,
- normalize=null
+ displayName = operator,
+ type: type2 = 'string',
+ defaultValue = '',
+ resetDefaultOnChange = false,
+ validate = null,
+ normalize = null
} = (typeof info === 'undefined' ? {} : info);
return {