From 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 Mon Sep 17 00:00:00 2001 From: James Maa Date: Fri, 31 May 2024 08:06:52 -0700 Subject: Allow trailing commas in ESLint (#1013) * Update comma-dangle rule * Fix dangling commas --- ext/js/dictionary/dictionary-worker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/js/dictionary/dictionary-worker.js') diff --git a/ext/js/dictionary/dictionary-worker.js b/ext/js/dictionary/dictionary-worker.js index bd6d5345..26e23f30 100644 --- a/ext/js/dictionary/dictionary-worker.js +++ b/ext/js/dictionary/dictionary-worker.js @@ -37,7 +37,7 @@ export class DictionaryWorker { {details, archiveContent}, [archiveContent], onProgress, - this._formatImportDictionaryResult.bind(this) + this._formatImportDictionaryResult.bind(this), ); } @@ -82,7 +82,7 @@ export class DictionaryWorker { reject, onMessage: null, onProgress, - formatResult + formatResult, }; // Ugly typecast below due to not being able to explicitly state the template types /** @type {(event: MessageEvent>) => void} */ @@ -200,7 +200,7 @@ export class DictionaryWorker { const {result, errors} = response; return { result, - errors: errors.map((error) => ExtensionError.deserialize(error)) + errors: errors.map((error) => ExtensionError.deserialize(error)), }; } } -- cgit v1.2.3