Satisfy eslint

This commit is contained in:
Henrik Giesel 2021-07-13 00:23:46 +02:00
parent ddf3adfc8e
commit ac3577455d
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,10 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
/* eslint
@typescript-eslint/no-non-null-assertion: "off",
*/
import "css-browser-selector/css_browser_selector";
import "jquery/dist/jquery";
@ -139,7 +143,7 @@ export function _showAnswer(a: string, bodyclass: string): void {
// avoid scrolling to the answer until images load
allImagesLoaded().then(scrollToAnswer);
},
function () {}
function () {/* noop */}
)
);
}

View file

@ -7,7 +7,8 @@ import { RegisterHTMLHandler } from "mathjax-full/js/handlers/html";
import { AllPackages } from "mathjax-full/js/input/tex/AllPackages.js";
import "mathjax-full/js/util/entities/all";
const adaptor = new HTMLAdaptor(window as any);
// @ts-expect-error Minor interface mismatch: document.documentElement.nodeValue might be null
const adaptor = new HTMLAdaptor(window);
RegisterHTMLHandler(adaptor);
const texOptions = {