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/dictionary/dictionary-database.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/dictionary/dictionary-database.js')
-rw-r--r-- | ext/js/dictionary/dictionary-database.js | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/ext/js/dictionary/dictionary-database.js b/ext/js/dictionary/dictionary-database.js index ca90f6a6..e15d486c 100644 --- a/ext/js/dictionary/dictionary-database.js +++ b/ext/js/dictionary/dictionary-database.js @@ -68,67 +68,67 @@ export class DictionaryDatabase { stores: { terms: { primaryKey: {keyPath: 'id', autoIncrement: true}, - indices: ['dictionary', 'expression', 'reading'] + indices: ['dictionary', 'expression', 'reading'], }, kanji: { primaryKey: {autoIncrement: true}, - indices: ['dictionary', 'character'] + indices: ['dictionary', 'character'], }, tagMeta: { primaryKey: {autoIncrement: true}, - indices: ['dictionary'] + indices: ['dictionary'], }, dictionaries: { primaryKey: {autoIncrement: true}, - indices: ['title', 'version'] - } - } + indices: ['title', 'version'], + }, + }, }), { version: 30, stores: { termMeta: { primaryKey: {autoIncrement: true}, - indices: ['dictionary', 'expression'] + indices: ['dictionary', 'expression'], }, kanjiMeta: { primaryKey: {autoIncrement: true}, - indices: ['dictionary', 'character'] + indices: ['dictionary', 'character'], }, tagMeta: { primaryKey: {autoIncrement: true}, - indices: ['dictionary', 'name'] - } - } + indices: ['dictionary', 'name'], + }, + }, }, { version: 40, stores: { terms: { primaryKey: {keyPath: 'id', autoIncrement: true}, - indices: ['dictionary', 'expression', 'reading', 'sequence'] - } - } + indices: ['dictionary', 'expression', 'reading', 'sequence'], + }, + }, }, { version: 50, stores: { terms: { primaryKey: {keyPath: 'id', autoIncrement: true}, - indices: ['dictionary', 'expression', 'reading', 'sequence', 'expressionReverse', 'readingReverse'] - } - } + indices: ['dictionary', 'expression', 'reading', 'sequence', 'expressionReverse', 'readingReverse'], + }, + }, }, { version: 60, stores: { media: { primaryKey: {keyPath: 'id', autoIncrement: true}, - indices: ['dictionary', 'path'] - } - } - } - ]) + indices: ['dictionary', 'path'], + }, + }, + }, + ]), ); } @@ -179,11 +179,11 @@ export class DictionaryDatabase { ['terms', 'dictionary'], ['termMeta', 'dictionary'], ['tagMeta', 'dictionary'], - ['media', 'dictionary'] + ['media', 'dictionary'], ], [ - ['dictionaries', 'title'] - ] + ['dictionaries', 'title'], + ], ]; let storeCount = 0; @@ -196,7 +196,7 @@ export class DictionaryDatabase { count: 0, processed: 0, storeCount, - storesProcesed: 0 + storesProcesed: 0, }; /** @@ -370,7 +370,7 @@ export class DictionaryDatabase { ['terms', 'dictionary'], ['termMeta', 'dictionary'], ['tagMeta', 'dictionary'], - ['media', 'dictionary'] + ['media', 'dictionary'], ]; const objectStoreNames = targets.map(([objectStoreName]) => objectStoreName); const transaction = this._db.transaction(objectStoreNames, 'readonly'); @@ -596,7 +596,7 @@ export class DictionaryDatabase { score: row.score, dictionary: row.dictionary, id: row.id, - sequence: typeof sequence === 'number' ? sequence : -1 + sequence: typeof sequence === 'number' ? sequence : -1, }; } @@ -615,7 +615,7 @@ export class DictionaryDatabase { tags: this._splitField(row.tags), definitions: row.meanings, stats: typeof stats === 'object' && stats !== null ? stats : {}, - dictionary: row.dictionary + dictionary: row.dictionary, }; } |