From e9dde826df738c4094709804d72de4991b377a8a Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 10 Dec 2023 19:21:14 -0500 Subject: Change no-console to error, only for ext files (#352) --- ext/js/display/display-anki.js | 1 + ext/js/display/display.js | 1 + 2 files changed, 2 insertions(+) (limited to 'ext/js/display') diff --git a/ext/js/display/display-anki.js b/ext/js/display/display-anki.js index d0da568c..574e90ee 100644 --- a/ext/js/display/display-anki.js +++ b/ext/js/display/display-anki.js @@ -564,6 +564,7 @@ export class DisplayAnki { const content = this._display.displayGenerator.createAnkiNoteErrorsNotificationContent(displayErrors); for (const node of content.querySelectorAll('.anki-note-error-log-link')) { /** @type {EventListenerCollection} */ (this._errorNotificationEventListeners).addEventListener(node, 'click', () => { + // eslint-disable-next-line no-console console.log({ankiNoteErrors: errors}); }, false); } diff --git a/ext/js/display/display.js b/ext/js/display/display.js index 6e1450c3..9c2d97f2 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -2027,6 +2027,7 @@ export class Display extends EventDispatcher { } } + // eslint-disable-next-line no-console console.log(result); } -- cgit v1.2.3