1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:06:37 -04:00

*much* stricter typescript (and some js) linting 😬

This commit is contained in:
2021-07-11 11:15:53 -04:00
parent d9214d846d
commit a2d2eee612
10 changed files with 101 additions and 44 deletions

View File

@ -26,8 +26,12 @@ if (wrapper) {
const hitsComma = numeral(data.hits).format("0,0");
const hitsPlural = data.hits === 1 ? "hit" : "hits";
if (spinner) spinner.style.display = "none";
if (counter) counter.appendChild(document.createTextNode(hitsComma));
if (spinner) {
spinner.style.display = "none";
}
if (counter) {
counter.appendChild(document.createTextNode(hitsComma));
}
wrapper.title = hitsComma + " " + hitsPlural;
} else {
// something went horribly wrong, initiate coverup

View File

@ -1,3 +1,4 @@
/* eslint-disable */
/*! Dark mode switcheroo | MIT License | jrvs.io/darkmode */
// improve variable mangling when minifying

View File

@ -1,7 +1,7 @@
import twemoji from "twemoji";
twemoji.parse(document.body, {
callback: function (icon, options) {
callback: function (icon) {
// simpler relative URIs
return "/assets/emoji/" + icon + ".svg";
},