aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/anki-templates-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/anki-templates-controller.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/pages/settings/anki-templates-controller.js')
-rw-r--r--ext/js/pages/settings/anki-templates-controller.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/pages/settings/anki-templates-controller.js b/ext/js/pages/settings/anki-templates-controller.js
index d4f1dc10..7d4533e4 100644
--- a/ext/js/pages/settings/anki-templates-controller.js
+++ b/ext/js/pages/settings/anki-templates-controller.js
@@ -85,7 +85,7 @@ export class AnkiTemplatesController {
menuButton.addEventListener(
/** @type {string} */ ('menuClose'),
/** @type {EventListener} */ (this._onFieldMenuClose.bind(this)),
- false
+ false,
);
}
@@ -231,7 +231,7 @@ export class AnkiTemplatesController {
}
return {
dictionaryEntry: /** @type {import('dictionary').TermDictionaryEntry} */ (this._cachedDictionaryEntryValue),
- text: this._cachedDictionaryEntryText
+ text: this._cachedDictionaryEntryText,
};
}
@@ -257,11 +257,11 @@ export class AnkiTemplatesController {
url: window.location.href,
sentence: {
text: sentenceText,
- offset: 0
+ offset: 0,
},
documentTitle: document.title,
query: sentenceText,
- fullQuery: sentenceText
+ fullQuery: sentenceText,
};
const template = this._getAnkiTemplate(options);
const {general: {resultOutputMode, glossaryLayoutMode, compactTags}} = options;
@@ -273,11 +273,11 @@ export class AnkiTemplatesController {
deckName: '',
modelName: '',
fields: [
- ['field', field]
+ ['field', field],
],
resultOutputMode,
glossaryLayoutMode,
- compactTags
+ compactTags,
}));
result = note.fields.field;
allErrors.push(...errors);