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/templates/anki-template-renderer.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/templates/anki-template-renderer.js')
-rw-r--r-- | ext/js/templates/anki-template-renderer.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/templates/anki-template-renderer.js b/ext/js/templates/anki-template-renderer.js index 888be9b0..d526a1d1 100644 --- a/ext/js/templates/anki-template-renderer.js +++ b/ext/js/templates/anki-template-renderer.js @@ -96,20 +96,20 @@ export class AnkiTemplateRenderer { ['getMedia', this._getMedia.bind(this)], ['pronunciation', this._pronunciation.bind(this)], ['hiragana', this._hiragana.bind(this)], - ['katakana', this._katakana.bind(this)] + ['katakana', this._katakana.bind(this)], ]); /* eslint-enable @stylistic/no-multi-spaces */ this._templateRenderer.registerDataType('ankiNote', { modifier: ({marker, commonData}) => createAnkiNoteData(marker, commonData), - composeData: ({marker}, commonData) => ({marker, commonData}) + composeData: ({marker}, commonData) => ({marker, commonData}), }); this._templateRenderer.setRenderCallbacks( this._onRenderSetup.bind(this), - this._onRenderCleanup.bind(this) + this._onRenderCleanup.bind(this), ); await Promise.all([ this._structuredContentStyleApplier.prepare(), - this._pronunciationStyleApplier.prepare() + this._pronunciationStyleApplier.prepare(), ]); } @@ -201,7 +201,7 @@ export class AnkiTemplateRenderer { } return { expression: typeof expression === 'string' ? expression : '', - reading: typeof reading === 'string' ? reading : '' + reading: typeof reading === 'string' ? reading : '', }; } |