diff options
author | James Maa <jmaa@berkeley.edu> | 2024-05-31 08:06:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 15:06:52 +0000 |
commit | 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch) | |
tree | bdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/background/offscreen.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/background/offscreen.js')
-rw-r--r-- | ext/js/background/offscreen.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/background/offscreen.js b/ext/js/background/offscreen.js index bab4d0c9..5e901005 100644 --- a/ext/js/background/offscreen.js +++ b/ext/js/background/offscreen.js @@ -39,7 +39,7 @@ export class Offscreen { this._clipboardReader = new ClipboardReader( (typeof document === 'object' && document !== null ? document : null), '#clipboard-paste-target', - '#clipboard-rich-content-paste-target' + '#clipboard-rich-content-paste-target', ); @@ -57,7 +57,7 @@ export class Offscreen { ['findKanjiOffscreen', this._findKanjiHandler.bind(this)], ['findTermsOffscreen', this._findTermsHandler.bind(this)], ['getTermFrequenciesOffscreen', this._getTermFrequenciesHandler.bind(this)], - ['clearDatabaseCachesOffscreen', this._clearDatabaseCachesHandler.bind(this)] + ['clearDatabaseCachesOffscreen', this._clearDatabaseCachesHandler.bind(this)], ]); /* eslint-enable @stylistic/no-multi-spaces */ @@ -120,7 +120,7 @@ export class Offscreen { /** @type {import('translation').FindKanjiOptions} */ const modifiedOptions = { ...options, - enabledDictionaryMap: new Map(options.enabledDictionaryMap) + enabledDictionaryMap: new Map(options.enabledDictionaryMap), }; return await this._translator.findKanji(text, modifiedOptions); } @@ -147,7 +147,7 @@ export class Offscreen { ...options, enabledDictionaryMap, excludeDictionaryDefinitions, - textReplacements + textReplacements, }; return this._translator.findTerms(mode, text, modifiedOptions); } |