diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-19 07:30:17 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-19 12:30:17 +0000 | 
| commit | 2da866f982930c76d2317a3be426410683ecf5a2 (patch) | |
| tree | e77ce545177ba398068cb63037096a56dea04e2c /ext/js/display/display-anki.js | |
| parent | 65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff) | |
Update eslint rules (#710)
Diffstat (limited to 'ext/js/display/display-anki.js')
| -rw-r--r-- | ext/js/display/display-anki.js | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/ext/js/display/display-anki.js b/ext/js/display/display-anki.js index 03daf003..fb7bd85f 100644 --- a/ext/js/display/display-anki.js +++ b/ext/js/display/display-anki.js @@ -223,7 +223,7 @@ export class DisplayAnki {          this._modeOptions.set('term-kanji', terms);          this._modeOptions.set('term-kana', terms); -        this._updateAnkiFieldTemplates(options); +        void this._updateAnkiFieldTemplates(options);      }      /** */ @@ -258,7 +258,7 @@ export class DisplayAnki {      /** */      _onContentUpdateComplete() { -        this._updateDictionaryEntryDetails(); +        void this._updateDictionaryEntryDetails();      }      /** @@ -277,7 +277,7 @@ export class DisplayAnki {          const mode = this._getValidCreateMode(element.dataset.mode);          if (mode === null) { return; }          const index = this._display.getElementDictionaryEntryIndex(element); -        this._addAnkiNote(index, mode); +        void this._addAnkiNote(index, mode);      }      /** @@ -444,7 +444,7 @@ export class DisplayAnki {       */      _tryAddAnkiNoteForSelectedEntry(mode) {          const index = this._display.selectedIndex; -        this._addAnkiNote(index, mode); +        void this._addAnkiNote(index, mode);      }      /** @@ -783,7 +783,7 @@ export class DisplayAnki {          if (e.shiftKey) {              this._showViewNotesMenu(element);          } else { -            this._viewNotes(element); +            void this._viewNotes(element);          }      } @@ -804,7 +804,7 @@ export class DisplayAnki {          switch (action) {              case 'viewNotes':                  if (item !== null) { -                    this._viewNotes(item); +                    void this._viewNotes(item);                  }                  break;          } @@ -927,7 +927,7 @@ export class DisplayAnki {          const index = this._display.selectedIndex;          const button = this._getViewNoteButton(index);          if (button !== null) { -            this._viewNotes(button); +            void this._viewNotes(button);          }      } |