summaryrefslogtreecommitdiff
path: root/ext/js/comm/anki-connect.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/comm/anki-connect.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/comm/anki-connect.js')
-rw-r--r--ext/js/comm/anki-connect.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/comm/anki-connect.js b/ext/js/comm/anki-connect.js
index 8c5e2c85..4baff406 100644
--- a/ext/js/comm/anki-connect.js
+++ b/ext/js/comm/anki-connect.js
@@ -367,7 +367,7 @@ export class AnkiConnect {
const resultActions2 = /** @type {string[]} */ (this._normalizeArray(resultActions, -1, 'string', ', field scopes'));
return {
scopes: resultScopes2,
- actions: resultActions2
+ actions: resultActions2,
};
}
@@ -435,11 +435,11 @@ export class AnkiConnect {
cache: 'default',
credentials: 'omit',
headers: {
- 'Content-Type': 'application/json'
+ 'Content-Type': 'application/json',
},
redirect: 'follow',
referrerPolicy: 'no-referrer',
- body: JSON.stringify(body)
+ body: JSON.stringify(body),
});
} catch (e) {
const error = new ExtensionError('Anki connection failure');
@@ -654,7 +654,7 @@ export class AnkiConnect {
tags: tags2,
fields: fields2,
modelName,
- cards: cards2
+ cards: cards2,
};
result2.push(item2);
}