aboutsummaryrefslogtreecommitdiff
path: root/ext/js/core.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/core.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/core.js')
-rw-r--r--ext/js/core.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/core.js b/ext/js/core.js
index 14d0ef56..5c0c964b 100644
--- a/ext/js/core.js
+++ b/ext/js/core.js
@@ -600,7 +600,7 @@ export class DynamicProperty extends EventDispatcher {
* @returns {import('core').TokenString} A string token which can be passed to the clearOverride function
* to remove the override.
*/
- setOverride(value, priority=0) {
+ setOverride(value, priority = 0) {
const overridesCount = this._overrides.length;
let i = 0;
for (; i < overridesCount; ++i) {
@@ -670,7 +670,7 @@ export class Logger extends EventDispatcher {
* Other values will be logged at a non-error level.
* @param {?import('log').LogContext} [context] An optional context object for the error which should typically include a `url` field.
*/
- log(error, level, context=null) {
+ log(error, level, context = null) {
if (typeof context !== 'object' || context === null) {
context = {url: location.href};
}
@@ -745,7 +745,7 @@ export class Logger extends EventDispatcher {
* @param {unknown} error The error to log. This is typically an `Error` or `Error`-like object.
* @param {?import('log').LogContext} context An optional context object for the error which should typically include a `url` field.
*/
- warn(error, context=null) {
+ warn(error, context = null) {
this.log(error, 'warn', context);
}
@@ -754,7 +754,7 @@ export class Logger extends EventDispatcher {
* @param {unknown} error The error to log. This is typically an `Error` or `Error`-like object.
* @param {?import('log').LogContext} context An optional context object for the error which should typically include a `url` field.
*/
- error(error, context=null) {
+ error(error, context = null) {
this.log(error, 'error', context);
}
}