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/backup-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/backup-controller.js')
-rw-r--r-- | ext/js/pages/settings/backup-controller.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/pages/settings/backup-controller.js b/ext/js/pages/settings/backup-controller.js index f0876d3f..c4f3a97a 100644 --- a/ext/js/pages/settings/backup-controller.js +++ b/ext/js/pages/settings/backup-controller.js @@ -122,7 +122,7 @@ export class BackupController { timeSeparator, date.getUTCMinutes().toString().padStart(2, '0'), timeSeparator, - date.getUTCSeconds().toString().padStart(2, '0') + date.getUTCSeconds().toString().padStart(2, '0'), ]; return values.slice(0, resolution * 2 - 1).join(''); } @@ -152,7 +152,7 @@ export class BackupController { environment, userAgent: navigator.userAgent, permissions, - options: optionsFull + options: optionsFull, }; } @@ -285,7 +285,7 @@ export class BackupController { e.preventDefault(); complete({ result: true, - sanitize: element.dataset.importSanitize === 'true' + sanitize: element.dataset.importSanitize === 'true', }); modal.setVisible(false); }; @@ -580,7 +580,7 @@ export class BackupController { /** @type {unknown} */ // @ts-expect-error - The export function is declared as an extension which has no type information. const blob = await db.export({ - progressCallback: this._databaseExportProgressCallback.bind(this) + progressCallback: this._databaseExportProgressCallback.bind(this), }); db.close(); return /** @type {Blob} */ (blob); @@ -644,7 +644,7 @@ export class BackupController { async _importDatabase(_databaseName, file) { await this._settingsController.application.api.purgeDatabase(); await Dexie.import(file, { - progressCallback: this._databaseImportProgressCallback.bind(this) + progressCallback: this._databaseImportProgressCallback.bind(this), }); void this._settingsController.application.api.triggerDatabaseUpdated('dictionary', 'import'); this._settingsController.application.triggerStorageChanged(); |