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/pages/settings/dictionary-controller.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/pages/settings/dictionary-controller.js')
-rw-r--r-- | ext/js/pages/settings/dictionary-controller.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js index 291604e4..e7a9444f 100644 --- a/ext/js/pages/settings/dictionary-controller.js +++ b/ext/js/pages/settings/dictionary-controller.js @@ -216,7 +216,7 @@ class DictionaryEntry { ['Description', 'description'], ['Attribution', 'attribution'], ['Source Language', 'sourceLanguage'], - ['Target Language', 'targetLanguage'] + ['Target Language', 'targetLanguage'], ]; const dictionaryInfo = this._dictionaryInfo; @@ -484,7 +484,7 @@ export class DictionaryController { await this._settingsController.modifyProfileSettings([{ action: 'set', path: 'dictionaries', - value: dictionaries + value: dictionaries, }]); /** @type {import('settings-controller').EventArgument<'dictionarySettingsReordered'>} */ @@ -529,7 +529,7 @@ export class DictionaryController { allowSecondarySearches: false, definitionsCollapsible: 'not-collapsible', partsOfSpeechFilter: true, - useDeinflections: true + useDeinflections: true, }; } @@ -581,7 +581,7 @@ export class DictionaryController { targets.push({ action: 'set', path: `profiles[${i}].options.dictionaries`, - value: dictionaryOptionsArray + value: dictionaryOptionsArray, }); } } @@ -938,7 +938,7 @@ export class DictionaryController { path, start: j, deleteCount: 1, - items: [] + items: [], }); } } @@ -968,7 +968,7 @@ export class DictionaryController { targets.push({ action: 'set', path: `dictionaries[${i}].enabled`, - value + value, }); } await this._settingsController.modifyProfileSettings(targets); |